Overriding CMS view #1136
-
Hello! I need to disable or hide the "Reset Defaults" button in the themeoptions CMS controller. I'm wondering what is the correct way to do this without directly modifying the CMS code. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Probably the easiest way to do this is to create a Backend skin and overwrite the Theme options page template. It's not currently documented in the Winter docs, but you can look at the Tailwind UI plugin for inspiration on how to create your own skin. The dot points are:
Hopefully that should be enough to go on for now, however, we will endeavour to document this at some point. |
Beta Was this translation helpful? Give feedback.
-
It works! |
Beta Was this translation helpful? Give feedback.
Probably the easiest way to do this is to create a Backend skin and overwrite the Theme options page template. It's not currently documented in the Winter docs, but you can look at the Tailwind UI plugin for inspiration on how to create your own skin.
The dot points are:
skins
folder.modules/cms/controllers/themeoptions/update.php
template with your own copy within your skin, removing (or di…