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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue