Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Pass the parent ID of a page to the navigation template (see #7391)
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Oct 31, 2014
1 parent 94b7590 commit c2ab913
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions system/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Contao Open Source CMS changelog
Version 3.4.0-RC1 (2014-XX-XX)
------------------------------

### New
Pass the parent ID of a page to the navigation template (see #7391).

### Improved
Support the "min", "max" and "step" attributes on number fields (see #7363).

Expand Down
1 change: 1 addition & 0 deletions system/modules/core/modules/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ protected function renderNavigation($pid, $level=1, $host=null, $language=null)

$objTemplate = new \FrontendTemplate($this->navigationTpl);

$objTemplate->pid = $pid;
$objTemplate->type = get_class($this);
$objTemplate->cssID = $this->cssID; // see #4897
$objTemplate->level = 'level_' . $level++;
Expand Down

0 comments on commit c2ab913

Please sign in to comment.