Home > Contents > Index > 
ASSET.SITEPARENT
Queries the SitePlanTree table and then loads the parent page of the specified page asset into memory as an object.
Syntax
<ASSET.SITEPARENT NAME="pageName" OUTNAME="parentPageName"/>Parameters
NAME (required)- Input. The name of the page asset whose parent page you want to load. This page asset must be loaded and assigned a name before you can pass its name to this tag. (See
ASSET.LOAD.)
OUTNAME (required)- Input. The name to assign to the parent page object.
Description
This tag queries the SitePlanTree table and then loads as an object the parent page of the specified page asset. It functions similarly to
ASSET.LOAD.You typically use this tag to display information about the hierarchical position of the current page; for example, to create a link to the current page's parent page. This tag determines the parent page and then loads the parent page in one database query.
Error Numbers
The possible values of
errnoinclude:
Example
This code loads a page asset, loads its parent page, extracts the name of the parent page asset, and then displays the name:
<ASSET.LOAD NAME="myPage" TYPE="Page" OBJECTID="Variables.p"/> <ASSET.SITEPARENT NAME="myPage" OUTNAME="grandparent"/> <ASSET.GET NAME="grandparent" FIELD="name" OUTPUT="grandparent:name"/> Up one level to <CSVAR NAME="Variables.grandparent:name"/>.See Also
The tags described in Role List Tags .
Home > Contents > Index > 
Oracle XML Tag Reference
Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.