Home > Contents > Index >
Template Tag TOC  |   Alpha TOC  |   Tag Family TOC  |   Purpose TOC  |   Annotated TOC  |   Index 

 

ASSET.SITEPARENT

Queries the SitePlanTree table and then loads the parent page of the specified page asset into memory as an object.

Syntax

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.

errno

The possible values of errno include:

Value
Description
-112
No parent exists.
-10002
There is a missing method for the implementing class.
-10003
The method could not be invoked successfully.
-10004
A required parameter is missing.
-10005
The requested object is not in the object pool (is not loaded into memory).
-10007
The version of the object is not valid.
-10008
The node ID of the object is not valid.
-10009
More than one object met the specified criteria.
-12007
The specified value is not valid.

Example

This code loads a page asset, loads its parent page, extracts the name of the parent page asset, and then displays the name:

See Also

The tags described in Role List Tags .

  Home > Contents > Index >

FatWire XML Tag Reference
Copyright 2005 by FatWire Software
All rights reserved.