diff --git a/docs/changelog/6.x.x.txt b/docs/changelog/6.x.x.txt index cf1f2918d..6de03ec0e 100644 --- a/docs/changelog/6.x.x.txt +++ b/docs/changelog/6.x.x.txt @@ -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 diff --git a/lib/WebGUI/Asset/Wobject/Navigation.pm b/lib/WebGUI/Asset/Wobject/Navigation.pm index f4390abab..e216e4a00 100644 --- a/lib/WebGUI/Asset/Wobject/Navigation.pm +++ b/lib/WebGUI/Asset/Wobject/Navigation.pm @@ -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"} = []; diff --git a/lib/WebGUI/i18n/English/Asset_Navigation.pm b/lib/WebGUI/i18n/English/Asset_Navigation.pm index 76db549c4..4683bfc6e 100644 --- a/lib/WebGUI/i18n/English/Asset_Navigation.pm +++ b/lib/WebGUI/i18n/English/Asset_Navigation.pm @@ -240,6 +240,8 @@ the Navigation Template to determine who can see them in the menu.
page.relDepth
The relative depth of this page (relative to starting point).
page.isSystem
A conditional indicating whether this page is a system page (Trash, Clipboard, etc).
page.isHidden
A conditional indicating whether this page is a hidden page.
page.isContainer
A conditional indicating whether this page a container asset.
page.isUtility
A conditional indicating whether this page is a utility asset.
page.isViewable
A conditional indicating whether the user has permission to view it.
page.url
The complete URL to this page.
page.indent
A variable containing the indent for the current page. The default indent is three spaces. Use the page.indent_loop if you need a more flexible indent.