Added template vars with info about mother node
This commit is contained in:
parent
8bcd5ef993
commit
e0235a5e4f
1 changed files with 8 additions and 0 deletions
|
|
@ -418,6 +418,14 @@ sub build {
|
|||
foreach my $property (@interestingPageProperties) {
|
||||
$pageData->{"page.".$property} = $page->get($property);
|
||||
}
|
||||
|
||||
# Some information about my mother
|
||||
if(ref($page->mother)) {
|
||||
foreach (qw(title urlizedTitle parentId pageId)) {
|
||||
$pageData->{"page.mother.$_"} = $page->mother->get($_);
|
||||
}
|
||||
}
|
||||
|
||||
# Store $pageData in page_loop. Mind the order.
|
||||
if ($self->{_reverse}) {
|
||||
unshift(@{$var->{page_loop}}, $pageData);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue