iphlex systems templates and text replacement
iphlexwebphlexdocumentation > templates and text replacement
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.

top of page
automatically generated element templates

If an element doesn't have its own template and doesn't use the default element template for the page, the system will attempt to create the most logical template for the element based on the element contents. E.g. if the element uses a preview image, the template will include the text
<IMG SRC='#PREVIEW_URL#'>,
and if the element contains a hypertext link this will become
<A HREF='#DESTINATION_URL#'><IMG SRC='#PREVIEW_URL#'></A>.

To see what the system will generate for a particular element, use the button 'preview generated text for element'click for more information about this button ) in the element subscreen. You can then use the button 'copy text to clipboard'click for more information about this button ) to copy this generated code to the element's own template, or to the default template for the page, and work on it further.

top of page
iphlexwebphlexdocumentation > templates and text replacement Copyright © 2006 iphlex systems