I've downloaded CouchCMS to have a play with, and it looks very interesting. I've been studying the documentation for the answer to a simple question, though, without success. Maybe I'm just having a stupid day (it happens), so I wonder whether someone could help me out?
I have a static site which consists of a number of pages with very similar structure, such as common headers and footers, etc., with a few sections here and there which require CMS functionality (as in user-editable content). What I'm looking for is the best way to have some kind of master page type functionality, whereby each of the pages follows the standard template but with a different main content section. So, the template (master page) would be something like this:
Common header section including nav menu
[Placeholder for main content]
Common footer
Just to be clear, the 'placeholder for main content' is NOT intended to display a user-editable area, it's for the HTML specific to the different pages, which may vary greatly.
I looked at cms:embed for the header and footer, but I want to be able to do things like set the titles of the individual pages and have page-specific JS and CSS, so unless I've misunderstood something (likely enough), this doesn't seem the right way. In fact, what I'm after is kind of the opposite of this - rather than embedding snippets into my page, I want the components of my page to be embedded into areas in a masterpage.
This is such a fundamental templating requirement that I'm sure CouchCMS can do it and I've just not worked out how yet. Any help would be appreciated!
I have a static site which consists of a number of pages with very similar structure, such as common headers and footers, etc., with a few sections here and there which require CMS functionality (as in user-editable content). What I'm looking for is the best way to have some kind of master page type functionality, whereby each of the pages follows the standard template but with a different main content section. So, the template (master page) would be something like this:
Common header section including nav menu
[Placeholder for main content]
Common footer
Just to be clear, the 'placeholder for main content' is NOT intended to display a user-editable area, it's for the HTML specific to the different pages, which may vary greatly.
I looked at cms:embed for the header and footer, but I want to be able to do things like set the titles of the individual pages and have page-specific JS and CSS, so unless I've misunderstood something (likely enough), this doesn't seem the right way. In fact, what I'm after is kind of the opposite of this - rather than embedding snippets into my page, I want the components of my page to be embedded into areas in a masterpage.
This is such a fundamental templating requirement that I'm sure CouchCMS can do it and I've just not worked out how yet. Any help would be appreciated!