Home > Contents > Index >
Template Tag TOC  |   Alpha TOC  |   Tag Family TOC  |   Purpose TOC  |   Annotated TOC  |   Index 

 

RENDER.CALLELEMENT

Calls an element from the ElementCatalog table.

Syntax

Parameters

ELEMENTNAME (required)
Input. Name of the element to invoke.

ARGS_ (optional)
Input. Name/value pairs to pass to the called element, with the string ARGS_ as the prefix for the variable name. For example, CS-Direct sets several variables through the resargs2 column in a page entry. To pass a value for one of these variables to a RENDER.CALLELEMENT tag, you affix ARGS_ to the beginning of the variable: ARGS_cid="Variables.id", ARGS_c="article", and so on.

Description

This tag is the CS-Direct equivalent of the Content Server CALLELEMENT tag with the following differences:

Use this tag to process the content of an element that you wrote for CS-Direct and you want the scope of that element to be stacked. The element must exist in the ElementCatalog.

As with the Content Server CALLELEMENT tag, variables that exist prior to RENDER.CALLELEMENT are available to tags within the called element. Variables passed to an element are subject to the following order of precedence:

However, because the scope of an element called with this tag is local, variables set within the called element are not available within the parent (calling) element.

errno

The possible values of errno include:

Value
Description
-10
The element does not exist.
-12
The element cannot be evaluated.

Example

The following code sample calls an element named TopPageBreadcrumb. It displays the path you took to get to the currently displayed page. For example, if you visited the News page directly from a link on the Home page, the TopPageBreadcrumb element displays "Home > News".

Because the scope is local, parent page information is not inherited by the called element or returned to the calling element.

See Also

CALLELEMENT

  Home > Contents > Index >

FatWire XML Tag Reference
Copyright 2005 by FatWire Software
All rights reserved.