Reference > Layout Tags
List of basic <% .. %> tags applicable in layout follows. In layout class, there is a method defined to generate content for every tag except special ones (which are pre-generated by system core and passed to layout class).
The naming convention for those methods is as follows:
Appearance of <% anyTag %> in template will lead to search for a createAnyTag method in layout class, and to the replace of <% anyTag %> with createAnyTag method return value. This method should be defined in following sense:
protected function createAnyTag($params, $subParams = false) {
// method code
return $s; // string
}
Inserts URL pointing to certain article's detail
articleLink
Inserts certain article's title
articleLinkTtl
Inserts absolute path to site assets base
assetsPath
Inserts absolute path to Cloudia assets base
assetsPathMaster
Renders articles bound to certain article
bindsList
If applicable, inserts a form for comments adding
commentsAdd
Renders certain article's comments
commentsList
Inserts a floatbox includes & support
floatboxBase
Inserts Google Analytics code
gaReference
Inserts URL pointing at this site's root in current language version
homeLinkUrl
Inserts a base for jQuery+FaceBox and an async renderer provider
jQueryBase
Renders a language switch
langSwitch
Inserts longer variant of current language identificator
language
Renders arbitrary content based on current URL
mainContent
Renders default main menu presentation
menu1
Renders default side menu presentation
menu2
Renders context-based side menu
menu2Context
Inserts breadcrumb navigation
navigate
Inserts breadcrumb navigation with tags stripped off
navigateTxt
Inserts URL pointing to certain node's detail
nodeLink
Inserts certain node's title
nodeLinkTtl
Renders specified node's content
nodeView
Renders certain node's content with respect to hierarchy
nodeViewH
Inserts shorter variant of current language identificator
short_lang_par
Inserts all applicable inline styles
styles
Inserts a default tag cloud navigation for current section
tagCloud
Inserts default title for current section
title
Translates given expression to active language
translate