Home > Contents > Index >
SITEPLAN.NODEPATH
Returns a list of the loaded site node's ancestors in the SitePlanTree.
Syntax
<SITEPLAN.NODEPATH NAME="node"
LIST="list name"/>Parameters
NAME (required)
- Name of the node whose children you want to get.
LIST (required)
- Name of the list to put the results in.
Description
Returns a list of the loaded site node's ancestors in the SitePlanTree. The list has all the columns of the SitePlanTree and does not include the current object. The first item in the list is its immediate parent, the second is that node's parent, and so on.
Error Numbers
The possible values of
Value Description -10004 A required parameter is missing.errno
include:.Example
To get the top most ancestor page of a page asset:
<ASSET.LOAD TYPE="Page" NAME="apage" FIELD="name" VALUE="Variables.page"/> <ASSET.GETSITENODE NAME="apage" OUTPUT="PageNodeId"/> <SITEPLAN.LOAD NAME="node" NODEID="Variables.PageNodeId"/> <SITEPLAN.NODEPATH NAME="node" LIST="myAncestors"/> <!-- display the top level page, just under the Site --> <GOTOROW LIST="myAncestors" ROWNUM="myAncestors.#numRows"/> <SETROW LIST="myAncestors" ACTION="PREV"/> <if COND="myAncestors.otype=Page"> <then> <ASSET.LOAD NAME="ancestor" TYPE="myAncestors.otype" OBJECTID="myAncestors.oid" DEPTYPE="exists"/> <ASSET.GET NAME="ancestor" FIELD="name"/> <csvar NAME="Variables.name"/> </then> </if>Release Introduced
This tag was introduced in CS release 5.0.
Home > Contents > Index > ![]()
Oracle XML Tag Reference
Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.