Keywords used within Page Templates process.
When creating page templates, the position of web page elements is determined by the use of special keywords, which are denoted from normal test by double square brackets. e.g. [ [keyword]] It is worth noting that the keywords are Case Sensitive and must always be in upper case.
This is a list of keywords and their meaning within page templates.
(Please note, there is a space between [ and [ purely for documention - the actual keyword should have no space between the two brackets)
[ [PAGETEXT]] | This is replaced with the full page text as defined within your page entries within the system |
[ [NEWS]] | This provides a list of news items synopses. Each item also is a link to the appropriate news page that has the full news text. This keyword can be placed on any page template. |
[ [NEWS:TEXT]] | This is replaced by the text of the news item, in the same manner as PAGETEXT. Please note that NEWS:TEXT should not exist within the same page template as PAGETEXT. |
[ [MENU]] | The menu system offers a number of options (see user documentation), however, the MENU keyword on its own will create a basic menu that is generated from tables, and is indented. Please note, that graphics and files required to drive this will need to be copied from the sub-directory 'blank_website' from the xdbcms installation. |
[ [MENU:TREE]] | This implements a javascript explorer-style tree of all the pages within the system. Necessary graphics and the javascript code itself can be found within the blank_website directory |
[ [MENU:TOP]] | This implements a tabbed style menu normally at the top of the web page, designed to go from left to right instead of top to bottom. If a page has 'sub-pages', then another line of tabs appears. |
[ [MENU:TRANSPARENT]] | This implements a menu similar to the standard MENU keyword, however, it is based upon cascading style sheets, and uses the transparency function. Using this menu option, you can create a standard detailed graphic behind the menu and the menu options appear on top of the graphic. The XDBCMS website uses MENU:TRANSPARENT. |
[ [TODAYS_DATE]] | This keyword is replaced with todays date - it is useful to be able to say 'Generated on: [ [TODAYS_DATE]]' |
[ [BLOCK:xxx]] | Include the defined BLOCK named 'xxx' at this point. Please note, if you've entered a specific X and Y co-ordinate for the block, then this will over-ride the location that you've put the block within the template. It is best to put such BLOCK keywords at the end of the web page, so that you can still see how the main web-page will render. |