This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
I would like to not render markup and code editor for certain pages in CMS.
I lockated this one -> cms/classes/page/fields.yaml
it is loaded in cms/controllers/Index.php
and it is used to create formwidget.
When i click on certain Page to show - this method in Index controller is triggered: function index_onOpenTemplate()
and inside this method formwidget ($widget)
is created from config file field.yaml
How can i modify widget created from field.yaml config. I would like to somehow manualy edit loaded config before it goes to form widget creations but it cant be done because there is no acces to that.
How can i achieve this goal without editing original fields.yaml
file.
Last updated
You can use this event in one of your plugin:
https://octobercms.com/docs/api/backend/form/extendfields
Last updated
1-3 of 3