-
- 160 Posts
I have a website home page template. The header, footer, menu and menu are reused as chunks. The side bar makes use of ditto to get summaries etc. I used wayfinder for the menu (powerful)
So far I think I used Modx well
Now I am faced with having to decide how to preserve my styles at the same time allowing the client to be able to change some of the content. I have particularly styled header elements (h1,h2...) and as well as list items with images etc.
What is the best approach to give the client control to edit the text yet maintain the style?
One other strange thing is that I havent found use for the [*content*]
-
- 160 Posts
I’m guessing here, but it sounds like you have been creating separate templates for actual pages, and putting the content into the templates. The normal approach is to create a separate template for each unique layout.
You would put [*content*] in the spot where you want the client to have a block of editable text--this is where the text of the page would go. Whatever styles you have in your css stylesheet will also be applied to this content, so it should have a consistent appearance with the rest of the site if you did a good job on your stylesheet.
-
- 24,544 Posts
Normally, you put any content that you want to be editable by regular users in either the Content field or in template variables. Everything else goes in the template, CSS files, chunks, or snippets (and occasionally, plugins). The template is seldom edited once you have it the way you want it. That way, the content is completely separate from the styling and as long as your users just use the Create/Edit document screen, they can’t affect anything but the editable content.
You can also hide TVs by assigning them to a document group that your editor users don’t have access to.