added new variables to the Navigation Template
This commit is contained in:
parent
f0930aed54
commit
a38817feec
2 changed files with 10 additions and 0 deletions
|
|
@ -365,6 +365,13 @@ sub view {
|
|||
}
|
||||
$absoluteDepthOfLastPage = $pageData->{"page.absDepth"};
|
||||
$pageData->{"page.hasChild"} = $asset->hasChildren;
|
||||
++$var->{"currentPage.hasSibling"}
|
||||
if $pageData->{"page.isSibling"};
|
||||
++$var->{"currentPage.hasViewableSiblings"}
|
||||
if ($pageData->{"page.isSibling"} && $pageData->{"isViewable"});
|
||||
++$var->{"currentPage.hasViewableChildren"}
|
||||
if ($pageData->{"page.isChild"} && $pageData->{"isViewable"});
|
||||
|
||||
my $parent = $asset->getParent;
|
||||
if (defined $parent) {
|
||||
foreach my $property (@interestingProperties) {
|
||||
|
|
|
|||
|
|
@ -89,6 +89,9 @@ the Navigation Template to determine who can see them in the menu.</P>
|
|||
<P><STRONG>currentPage.newWindow</STRONG><BR>A conditional indicating whether the base page should be opened in a new window.</P>
|
||||
<P><STRONG>currentPage.hasChild</STRONG><BR>A conditional indicating whether the base page has daughters.</P>
|
||||
<P><STRONG>currentPage.isHome</STRONG><BR>A conditional indicating whether the base page is the default page for the site.</P>
|
||||
<P><STRONG>currentPage.hasSibling</STRONG><BR>A conditional indicating whether the base page has siblings.</P>
|
||||
<P><STRONG>currentPage.hasViewableSiblings</STRONG><BR>A conditional indicating whether the base page has siblings that are viewable by the current user.</P>
|
||||
<P><STRONG>currentPage.hasViewableChildren</STRONG><BR>A conditional indicating whether the base page has children that are viewable by the current user.</P>
|
||||
<P><STRONG>page_loop</STRONG><BR>A loop containing page information in nested, hierarchical order.</P>
|
||||
<P><STRONG>unfolded_page_loop</STRONG><BR>This loop contains the same data as <STRONG>page_loop</STRONG> but the order is different. <STRONG>unfolded_page_loop</STRONG> returns it's pages in an unfolded manner; grouped by parent id. You'll probably need <STRONG>page_loop</STRONG>, but there are (CSS) menus that need <STRONG>unfolded_page_loop</STRONG> to work properly.</P>
|
||||
<p>Both <STRONG>page_loop</STRONG> and <STRONG>unfolded_page_loop</STRONG> have the following
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue