Optional TagsINCLUDE=
'INCLUDE=' identifies a CeC call that will display with in a template. To have a particular call display with in a template, use the include tag with a value of 'yes'. A template is a page that is used to "wrap" the results of a call. It allows the "look and feel" and the balance of the site to be maintained while displaying the results in a more appropriate manner. When the template is parsed to incorporate the results of the call (for example, an item list), a determination must be made as to where to insert the results. This is done by finding the first and last CeC calls in the template. Everything between these two lines is replaced with the results from the call. The 'include=yes' tag instructs the parser to ignore this specific call in the parsing process, thereby having it render with the template. Note: Do not place a call with the include tag between two calls that do not contain the include tag. You can use this tag with a template or non-template page. An example of a non-template page is a locally-hosted page that has both an itemcount and an index call. When the page is rendered, the itemcount and index will display. When the buyer clicks one of the heading links, the page containing the itemcount and index calls is used as the template (assuming the index call did not contain a template tag). The resulting heading list page will not contain the itemcount (see the parsing rules above). To have the itemcount call display use the include tag.
Local Syntax
Portable Syntax Similar to defining a portable template, the syntax for including a call in a portable template is a little different. The tag is formatted as an HTML comment with two pieces of information. To include an itemcount call within a portable template: <!-- CeC Include=itemcount --> Note: The <!-- CeC Include --> tag must be on a separate line, not flanked by other HTML tags. There must be one space between <!--and CeC, one space between CeC and Include, no spaces around the equals sign, and one space preceding --> . |
|
Copyright © 2002 Thomas Publishing Company |