Cody CMS
Fork me on GitHub

Default content

Q: How do I make sure that when a webmaster creates a new page, it contains all the content blocks I want there for my view to render?

A: You can attach content to a template and upon creation it is added to each new page. You can give each added content block a name here.

T: In the database these content block have an item id which is the negative of the id of the template they are attached to.

 

For super users there is a button "Adjust", it adds all default content as defined by its template if there is not yet a content block with this name in the page.