Developer's Manual  Macro Language  $parent()

$parent()

Returns id of a page parent.


{$parent([mixed page_id])[string text1][|string text2]}

Optional parameter page_id may take the following values:

Value Description
omitted Returns the title of current page.
Valid page id number Returns the title of page having that id number..
^ Returns the title of parent page.

If SiteSupra found requested property, it adds optional parameter text1 to the end of the property value. If SiteSupra failed to find the property, it shows parameter text2.

Please login to add comments.