RFE [ 1004098 ] Additional navigation Template Parameters added.
This commit is contained in:
parent
b003569dc3
commit
55e164c4e3
2 changed files with 9 additions and 4 deletions
|
|
@ -43,7 +43,7 @@
|
||||||
they were in the past.
|
they were in the past.
|
||||||
- BugFix: [ 999799 ] Fixed Package deletion/copy bug in 6.1.1
|
- BugFix: [ 999799 ] Fixed Package deletion/copy bug in 6.1.1
|
||||||
- BugFix: [ 997885 ] Root move left bug.
|
- BugFix: [ 997885 ] Root move left bug.
|
||||||
- Changed 'lft' and 'rgt' database field names to 'nestedSetLeft' and 'nestedSetRight'. (Martin Kamerbeek)
|
- Changed 'lft' and 'rgt' database field names to 'nestedSetLeft' and 'nestedSetRight'. (Martin Kamerbeek / Procolix)
|
||||||
- Added WebGUI::Session::getScratch().
|
- Added WebGUI::Session::getScratch().
|
||||||
- bugfix [ 996169 ] message log && uss not working
|
- bugfix [ 996169 ] message log && uss not working
|
||||||
- bugfix [ 1000944 ] WebGUI::MessageLog::addInternationalizedEntry error
|
- bugfix [ 1000944 ] WebGUI::MessageLog::addInternationalizedEntry error
|
||||||
|
|
@ -57,6 +57,7 @@
|
||||||
Kranendonk)
|
Kranendonk)
|
||||||
- RFE [ 806332 ] Force SSL, a new page property "Encrypt page" is added. (Len
|
- RFE [ 806332 ] Force SSL, a new page property "Encrypt page" is added. (Len
|
||||||
Kranendonk)
|
Kranendonk)
|
||||||
|
- RFE [ 1004098 ] Additional navigation Template Parameters added. (Martin Kamerbeek / Procolix, code thanks to Opentech)
|
||||||
|
|
||||||
6.1.1
|
6.1.1
|
||||||
- bugfix [ 991313 ] Manage Translations doesn't work
|
- bugfix [ 991313 ] Manage Translations doesn't work
|
||||||
|
|
|
||||||
|
|
@ -307,12 +307,12 @@ sub build {
|
||||||
(($page->{'nestedSetLeft'} > $currentPage->get('nestedSetLeft')) && ($page->{'nestedSetRight'} < $currentPage->get('nestedSetRight'))) ||
|
(($page->{'nestedSetLeft'} > $currentPage->get('nestedSetLeft')) && ($page->{'nestedSetRight'} < $currentPage->get('nestedSetRight'))) ||
|
||||||
(($page->{'nestedSetLeft'} < $currentPage->get('nestedSetLeft')) && ($page->{'nestedSetRight'} > $currentPage->get('nestedSetRight')));
|
(($page->{'nestedSetLeft'} < $currentPage->get('nestedSetLeft')) && ($page->{'nestedSetRight'} > $currentPage->get('nestedSetRight')));
|
||||||
|
|
||||||
# Anchestor info
|
# Anchestor info
|
||||||
foreach my $ancestor ($currentPage->ancestors) {
|
foreach my $ancestor ($currentPage->ancestors) {
|
||||||
$pageData->{"page.isMyAncestor"} += ($ancestor->{'pageId'} == $page->{'pageId'});
|
$pageData->{"page.isMyAncestor"} += ($ancestor->{'pageId'} == $page->{'pageId'});
|
||||||
}
|
}
|
||||||
# Some information about my mother
|
|
||||||
|
|
||||||
|
# Some information about my mother
|
||||||
my $mother = WebGUI::Page->getPage($page->{parentId});
|
my $mother = WebGUI::Page->getPage($page->{parentId});
|
||||||
if ($page->{parentId} > 0) {
|
if ($page->{parentId} > 0) {
|
||||||
foreach (qw(title urlizedTitle parentId pageId)) {
|
foreach (qw(title urlizedTitle parentId pageId)) {
|
||||||
|
|
@ -371,6 +371,10 @@ sub build {
|
||||||
# Configure button
|
# Configure button
|
||||||
$var->{'config.button'} = $self->_getEditButton();
|
$var->{'config.button'} = $self->_getEditButton();
|
||||||
|
|
||||||
|
# Some properties of the page the user's viewing.
|
||||||
|
$var->{"page.current.hasDaughter"} = ($currentPage->get('nestedSetRight') - $currentPage->get('nestedSetLeft') > 1);
|
||||||
|
$var->{"page.current.isHome"} = ($currentPage->get('pageId') == 1);
|
||||||
|
|
||||||
if ($self->{_template}) {
|
if ($self->{_template}) {
|
||||||
return WebGUI::Template::processRaw($self->{_template}, $var);
|
return WebGUI::Template::processRaw($self->{_template}, $var);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue