Custom function in a Module Controller
I need to trigger a custom function that is run after a user clicks "Update" for a post in a Twill module, and that function needs to receive a variable e.g. the post_id number.
I know there are Admin Controllers for each module so I'm guessing I'd put it there but how would it launch.
Where do I start?
kallefrombosnia•459d ago
Hello, afaik there is no support for the custom actions. I was proposing this a long time ago, but no design currently support this.
Alternative to this is to use Repository in which you can override methods like
afterSave
or prepareFieldsBeforeSave
, which can give you access to the request via request()
or fields which are submitted via form. In there you can make a custom logic.
Soon Ill work and finish on the events in the 3.x which are handy to use for this type of work.1.4KMembers
View on DiscordWant results from more Discord servers?
More PostsTiptap WYSIWYGHi everyone,
I would like to know if there is a way to use toolbar align options with tiptap type wySorting by a translation field (ie, title)Hi everyone, I feel like I must be missing something simple (as usual) or am making something overlyProblem with displaying headers if the site is in two languagesGood morning. I decided to look at twill 3 version.
I use two languages (ru-main, en-I want to add Issuing rights to upload to the media libraryGood afternoon! Tell me how to give the right dip for the defined role to upload files / images to t