Home > Contents > 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. The 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.
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="Variables.cid"/> <ASSET.GETSITENODE NAME="NewsPage" OUTPUT="PageNodeId"/>See Also
The tags described in Role List Tags .
Home > Contents > Index > ![]()
FatWire XML Tag Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.