Templates

ID #1001

Which replacementtags exists and what are they used for ?

 

In Falt4 basically two types of templates exist. This are sitetemplates which will be used to define the positions of the different elements like the navigation and the content and on the other hand contenttemplates which are used for presenting the content.



A sitetemplate contains at least a position for the content (#engine) and for the navigation (example: #group1, the number of the group is depending on how much different navigation you used in the navigation management). Additionally a sitetemplate can contain other positions for modules like the search or the survey.



Allowed positions (replacementtags) are:

  • #group1: This will include the chosen navigation, as can be seen in the navigationadministration.

  • #engine: This will include the active contenttemplate

  • #position_top: for positioning modules

  • #position_left1 [1-9]: for positioning modules

  • #position_right1 [1-9]: for positioning modules

  • #position_center: for positioning modules



Contenttemplates are split into three types, which are:

  • Articletemplates

  • Weblogtemplates

  • Moduletemplates



Article and Weblogtemplates can contain the following positions:

  • #title this will show the title of the article

  • #content1 introduction of the article

  • #content2 main content of the article

  • #content3 ending content of the article

  • #read_more A link to the full article if you do not show all of #content[1-3]

  • #module(modulename) this is for including modules in articles eg.: #module(guestbook)

  • #print a link for opening only the content in a new window with the appropriate template

  • #autor the loginname of the autor

  • #date creationdate of the article

  • #name_full the full name of the autor as defined in the account

  • #all a link for showing all articles out of the selected category

  • #topicpic an optional image for the selected category



A moduletemplate only needs two positions because if you want to build a custom page with an included module you should use the #module tag in a contenttemplate.

  • #module this is where the module gets included.

  • #mod_name the actual name of themodule (eg.: guestbook).





You should be aware that site template must begin after the <body> tag and ends just before </body>.



Tags: -

Related entries:

Last update: 2007-06-25 16:21
Author: Faltwerk.ch
Revision: 1.0

Digg it! Print this record Send to a friend Show this as PDF file
Propose a translation for Propose a translation for
Please rate this entry:

Average rating: 5 out of 5 (1 Votes )

completely useless 1 2 3 4 5 most valuable

You can comment on this entry