Skip to content

Overriding CMS view #1136

Answered by bennothommo
jsebaf asked this question in Q&A
May 27, 2024 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

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:

  • A skin is defined as part of a plugin, usually in the skins folder.
  • You will need to instruct your plugin to add a view path for modules and plugins in your skin folder, so Winter will look in your skin assets for a template first, before falling back to the standard template.
  • You would then need to overwrite the modules/cms/controllers/themeoptions/update.php template with your own copy within your skin, removing (or di…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by jsebaf
Comment options

You must be logged in to vote
1 reply
@bennothommo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants