iphlex systems introduction
iphlexwebphlexdocumentation > introduction
show contents
hide contents

 

top of page
templates

There are various types of template:

  • page templates for the main page, detail and extra pages,
  • an element template for each element in the page group,
  • more specialised templates for parts of a page, such as menus and navigation blocks.
The main page template will normally contain the replacement code #ELEMENTS#, which is replaced during generation with the code generated for all the elements in that page.

A main page can contain a default element template, which can be used by any or all of its elements, but an individual element can also have its own special template. Element templates can also be automatically generated by the system.

see also:

top of page
text replacement codes

The templates contain text replacement codes, which start and end with the character #. When the page group is generated or previewed, they are replaced by their actual value.

A simple example: the template for this page starts like this:

<HTML>
<HEAD>
<TITLE>#TITLE#</TITLE>
</HEAD>

and after generation it becomes...

<HTML>
<HEAD>
<TITLE>introduction</TITLE>
</HEAD>

Here are a few examples of replacement codes, based on the page you'e looking at:

page number #PAGE_NUMBER# 3
the number of the next page #Next:PAGE_NUMBER# 4
number of (main) pages #NUMBER_OF_PAGES# 7
page group title #TITLE# introduction
page title #PAGE_TITLE# templates and text replacement
the title of the last page #Last:PAGE_TITLE# web generation
element text 3 #ELEMENT_TEXT3# text replacement codes
language code #LANG_CODE# ENG
language description #LANG_DESC# English
date content last updated #DATE_LAST_UPD# 12-02-2005

Text replacement codes are not case-sensitive.

see also:

top of page
do I need to learn the replacement codes?

No. At various places in the page group and element screens you'll see a button for previewing all available local text replacement codesclick for more information about this button ). All the available replacement codes are displayed in a text window, along with the values with which they would be replaced if the current record were being generated. The required codes can then be copied and pasted to where they are needed.

Most of these replacement codes can also be copied and pasted directly from the web page group screen.

Click here for a complete list of the system-wide replacement codes.

see also:

top of page
iphlexwebphlexdocumentation > introduction Copyright © 2006 iphlex systems