Cmsmadesimple templates




















The edit template form is a complex form that allows management of all of the attributes of a template. For convenience, the form is divided into numerous tabs. This form supports the "dirtyform" functionality to reduce the chances of accidentally losing unsaved changes.

Users will be notified if attempting to navigate away from this page if the template has not been saved. This form locks the selected template so that other authorized editors will not have the ability to edit the template at the same time.

This prevents somebody else from accidentally overwriting changes of another editor. Table Columns Id: This displays the unique numeric id for the template. Clicking on the link in this column will bring up the edit template form. Hovering over the link will display a tooltip with further information about the template. Name: This displays a unique textual name for the template. Type: This displays the template type. Hovering over the type name will display a tooltip with further information about the template type.

Design: This column displays the design s that this template is associated with if any. If the template is associated with multiple designs a tooltip will display a list of the first few designs that this template is associated with. Default: This column displays an icon indicating if the template is the default for its type. Actions: Depending upon user privileges there will be one or more icons displayed in this column to perform various actions on, or with the template: Edit - Display a form to edit the contents and attributes of the template.

Copy - Display a form to allow copying the selected template to a new name. For convenience a default new name will be provided. Delete - Display a form to allow deleting the selected template. Extra confirmation is required for this action as no checks are possible to see if the template is in use by any page, or recursively by any other template.

It tells browsers what version of X HTML that your document is using, so that it can interpret it correctly. It is also necessary for validation tools to check the syntax of your code.

The first two lines can be left unchanged. That's where the language of the content of your page is specified. Change "en" to the two-letter code for your language of preference.

Codes for the Representation of Names of Languages. It means that you only have to add this tag once in your primary page template, and the appropriate HTML code will be generated to include the stylesheets that are attached to the design.

This is the beginning of the div block that the entire page is wrapped in. In the stylesheet you can set the width of the page, if it is to be centered and so on. How to customize it: Look for div pagewrapper in one of the stylesheets with a name beginning by Layout.

As you can see there is no information in the template, but all the content of the header is set by CSS.

This makes for very clean HTML code. However, if you like you can also add text or other information that you want to appear in the header, directly in the template. How to customize it: Look for div header and div header h1 a for the link in one of the stylesheets with a name beginning by Layout. That's where you set the background color, logo, height etc. It can look something like this:.

If you would like to hide a content block - for example, if a content editor has not put any content in it - you can achieve this with some simple Smarty code. In our example, we want to hide a content block named SpecialOffer. Note that for content blocks and parameter "block" you should use names without special characters or spaces.

If you need a descriptive text for content block use "label" parameter. Create your own template. This section has not yet been updated for version 2. We're working on it! Separating structure and presentation CMSMS uses smarty templates extensively for controlling the content of each individual component of a page. Create or customize a template You saw how the editor picked the template to define how each page will look.

How do you know what placeholders you can use in a template? Click on their Help links to see how they are used. You can make your own User-defined Tags.

Fill in the Name and the Code and click Submit.



0コメント

  • 1000 / 1000