Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index
render:contentserver
Calls and renders a page or a pagelet from the SiteCatalog table.
Syntax
<render:contentserver pagename="nameOfPageEntry
"/> [<render:argument name="variable1"
value="value1
"]/> </render:contentserver>Parameters
pagename
(required)- Input. Name of the page entry from the SiteCatalog to render.
render:argument
(optional)- Input. Name/value pairs to pass to the called element. 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 arender:contentserver
tag, you use an argument. For example:
<render:argument name="c" value="Article"/>
<render:argument name="cid" value='<%=ics.GetVar("id")%>'/>Description
This tag is the CS-Direct equivalent of the Content Server XML CONTENTSERVER (Deprecated) tag with the following differences:
- Its scope is as follows: variables in the calling element are not available in the called element (unless explicitly passed in); changes made to variable values in the called element are not reflected in the calling element; and new variables set in the called element are not available to the calling element.
rendermode
is passed to the page entry.Use this tag to call the ContentServer module to serve a CS-Direct page or pagelet. The page or pagelet must have a page entry in the SiteCatalog. If the specified pagelet is already cached, this tag loads it. If the specified pagelet is not already cached, this tag caches it (if caching is enabled for it) and loads it.
Variables passed to the ContentServer servlet are subject to the following order of precedence:
1. Variables set in arguments.
2. Variables set in scripts.
3. Variables set in the
resargs1
andresargs2
columns of the SiteCatalog.
4. Variables set in the
resdetails1
andresdetails2
columns of the ElementCatalog.If an element is coded with a render:satellitepage tag but CS-Satellite is not present, render:satellitepage passes the call to render:contentserver which then serves the page or pagelet.
errno
The value of
errno
is unchanged.Example
This code calls for the page entry of a template named PlainList, passing the ID of the asset that it should display and the ID of the asset's parent page:
<render:contentserver pagename="BurlingtonFinancial/Collection/PlainList">
<render:argument name="cid value='<%=SectionHighlights.getValue("
oid")%>'/><render:argument name="p" value='<%=ics.GetVar
("asset:id")%>'/>
</render:contentserver>
See Also
Home > Contents > Index > ![]()
FatWire JSP Tag Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.