october-partial

relationship between user and category OctoberCMS

半腔热情 提交于 2020-01-06 07:52:48
问题 how to establish a relationship between the user and the category? A category has more than one user, and a user belongs to a category I add category_id in the user table on the frontend I display the list of users with the plugin builder but I also want to display the category of the user I use the RainLab user plugin Help me please, thank you in advance 回答1: it seems you need to extend user model and add category relation runtime You need to add this code to your plugin's boot method public

Custom Contact Form in Partials and use in Static Pages plugin

这一生的挚爱 提交于 2019-12-08 13:31:18
问题 I have used OctoberCMS, Static Pages plugin, through which I am creating Static Pages. The thing is, I have created one contact form in Partial like below. contactform_snippet.htm - Markup contactform_snippet.htm - Code And below is the Static Page which I have created and used contactform_snippet.htm which I just created. And below is Preview how its looking like. The thing is, Even if I click on "Submit" button, it is not doing anything. I also changed the form code from data-request="{{ _