Wednesday, 2 March 2011

CMS - Research

To begin understanding the way CMSMS works i have compiled a list of the common tags i will be using for Palmhives website...
{sitename}
- will add the sitename you can set in the Global Settings

{title}
- will be replaced by the title of the content (You can set title when creating content pages).

{stylesheet}
- This must be between the tags. It links all the stylesheets that you have attached to your template. If you forget this your page will appear without styles. If you rather want to use external stylesheets you can add a normal tag in the header.
{metadata}
- will add the meta data you can set in the Global Settings
{content}
- This will be replaced by the real content of the selected page, the content that you edit for each page in Content -> Pages (use {content block='another_content_area'} to add another editable area to the template). Some other info how to add multiple content blocks and modify your template to show block only if it has text.

{content_image}
- This will be replaced with the Image selected in the Edit Page window, at the bottom of the screen with the block name you specify (i.e. MyImage). (use {content_image block='MyImage' dir='images'} for immediate results).

{$content_obj->GetPropertyValue('image')}
- This will be replaced with the image filename selected on the Edit Page screen under Image. (use GetPropertyValue('image')}" /> for immediate results.).

{breadcrumbs}
- Will be replaced by a path to the selected content.

{menu}
- This is one of the most common menus. The entire menu will be automatically generated from your pages, where you put this placeholder. This tag can also take parameters, depending on how you want to display the menu. For example {menu collapse='1'} to collapse the sub items in the menu, so that only the sub items of the current menu item are shown.

No comments: