Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index
asset:getsitenode
Queries the SitePlanTree table and returns the node ID of the specified page asset.
Syntax
<asset:getsitenode name="pageAssetName
" output="nodeIDVariableName
"/>Parameters
name
(required)- Input. Name assigned to the page asset whose node ID you want to retrieve. This page asset must be loaded and assigned a name before you can pass its name to this tag. (See
asset:load
.) If this asset is not a page, CS-Direct cannot return a node ID.
output
(required)- Input. Variable name to assign to the page asset's node ID.
Description
The relationships set up between page assets on the site tree in the CS-Direct main window are stored in the SitePlanTree table. This tag uses the object ID of a page asset to retrieve its node ID from that table.
You can then use the node ID to acquire information about the site's hierarchy to use for display: for example, to create a navigation bar with links to section pages or a link back to the parent page.
For more information about the SitePlanTree table, see Site Plan Tags .
errno
The possible values of
errno
include:
Value Description -10004 A required parameter is missing. -10005 The requested object is not in the object pool (is not loaded into memory)Example
This code loads a page asset and then determines the site node of that page:
<asset:load name="NewsPage" type="Page" objectid='<%=ics.GetVar("id")%>'/> <asset:getsitenode name="NewsPage" output="PageNodeId"/>See Also
Home > Contents > Index > ![]()
FatWire JSP Tag Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.