Skip to content
tracend edited this page Dec 30, 2011 · 14 revisions

This is a basic introduction of what sections are and how you can create your own

Defining sections as in the form TARGET::FORMAT seems to simplify the logic. The first part states the name of the section we want ot use while the second part the format we want the data to be output.

Example:

<? Menu::ul() ?>

There are a number of formats available in KISSCMS by default and you can extend that with your own...

Sections are always wrapped with a

wrapper

Attributes

Each view, ul(), inline() and others can support a number of attributes. Each presentation may have special support of attributes but the main ones mostly supported are:

  • id : The id name of the enclosing section
  • class : The class name of the enclosing section
  • h3 : The string for the title
  • h3-id : The id of the title
  • h3-class : The class of the title
  • ul-id : The id of the list (if available)
  • ul-class : The class of the list (if available)
  • delimiter : A string that separates items (especially when presented inline )
  • tag : Limit the items based on a specific tag

These attributes are used in a pseudo-object form, for example:

Menu::ul("tag: menu-top, title: Menu");

Will display a menu list in a ul list with the title "Menu"

Clone this wiki locally