added page.isContainer and page.isUtility template vars

This commit is contained in:
JT Smith 2005-11-10 14:45:10 +00:00
parent 990eb0fbf3
commit 2df1b4cb72
3 changed files with 6 additions and 0 deletions

View file

@ -12,6 +12,8 @@
- Added automated code testing framework.
- Added code skeletons for the various plugins WebGUI supports.
- Added template to Collaboration RSS feeds.
- Added page.isContainer and page.isUtility template variables to Navigation
templates.
6.7.7

View file

@ -370,6 +370,8 @@ sub view {
$pageData->{"page.isSystem"} = $asset->get("isSystem");
$pageData->{"page.isHidden"} = $asset->get("isHidden");
$pageData->{"page.isViewable"} = $asset->canView;
$pageData->{'page.isContainer'} = isIn($asset->get('className'), @{$session{config}{assetContainers}});
$pageData->{'page.isUtility'} = isIn($asset->get('className'), @{$session{config}{utilityAssets}});
$pageData->{"page.url"} = $asset->getUrl;
my $indent = $pageData->{"page.relDepth"};
$pageData->{"page.indent_loop"} = [];

View file

@ -240,6 +240,8 @@ the Navigation Template to determine who can see them in the menu.</P>
<P><STRONG>page.relDepth</STRONG><BR>The relative depth of this page (relative to starting point).</P>
<P><STRONG>page.isSystem</STRONG><BR>A conditional indicating whether this page is a system page (Trash, Clipboard, etc).</P>
<P><STRONG>page.isHidden</STRONG><BR>A conditional indicating whether this page is a hidden page.</P>
<P><STRONG>page.isContainer</STRONG><BR>A conditional indicating whether this page a container asset.</P>
<P><STRONG>page.isUtility</STRONG><BR>A conditional indicating whether this page is a utility asset.</P>
<P><STRONG>page.isViewable</STRONG><BR>A conditional indicating whether the user has permission to view it.</P>
<P dir=ltr><STRONG>page.url</STRONG><BR>The complete URL to this page.</P>
<P><STRONG>page.indent</STRONG><BR>A variable containing the indent for the current page. The default indent is three spaces. Use the <STRONG>page.indent_loop</STRONG> if you need a more flexible indent.</P>