Slate: Theme Template
This is a simple template that can be used to provide the layout for pages in slate. If it looks like a Rails view well... it should. Partials allow a developer to include code across multiple templates (think "libraries" in DreamWeaver). The "content_for()" block creates an editable region. To add another editable region to this page the developer would only have to update the template with a new content_for() section. No configuration in the CMS itself. The three options in the content_for() are a key for uniquely identifying content (meaning if you assign a new theme/template to the page but it has the same key the data will show up just fine), the role of the user who should have access (in this case only administrators or above will have access) and lastly the flag that turns on the help message for the content area.
learn more Would you like to comment?Sign up for a free account, or sign in (if you're already a member). |
[?]
This photo also belongs to: TagsAdditional Information
|