Pre-coded templates for Pages #99
HitArrowLegend
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think that the CMS should have a feature that allows users to create basic templates for new pages to use.
With such an option, a new page would come with precoded html markup.
I came across this issue while working on a theme for which I want to let users decide whether they want the page content to be inside a wrapper, but also let them decide if they want the sidebar (that can be dynamic) to be in its own wrapper, outside of the main one.
For a static sidebar, this is not issue as it can done in the layout.htm, with a partial and some conditional statements, but for dynamic sidebar this is not possible.
From my different tests, a dynamic sidebar can either be in a page (easiest solution imho), in the layout (with tons and tons of conditionnal statements), or have one different layout for each pages the user wants a different sidebar for.
For each of those solutions, there is a problem:
As an alternative, and or as a different idea, a new type of components could be added that would allow users to prepare chunks of codes in advance (snippets) and simply drag and dropping them would paste that html markup in the page we're editing.
Beta Was this translation helpful? Give feedback.
All reactions