From c2ab913273351c39c197022f1eda40ab479337a8 Mon Sep 17 00:00:00 2001 From: Leo Feyer Date: Fri, 31 Oct 2014 12:55:37 +0100 Subject: [PATCH] Pass the parent ID of a page to the navigation template (see #7391) --- system/docs/CHANGELOG.md | 3 +++ system/modules/core/modules/Module.php | 1 + 2 files changed, 4 insertions(+) diff --git a/system/docs/CHANGELOG.md b/system/docs/CHANGELOG.md index 2e449afef1..43123bc06c 100644 --- a/system/docs/CHANGELOG.md +++ b/system/docs/CHANGELOG.md @@ -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). diff --git a/system/modules/core/modules/Module.php b/system/modules/core/modules/Module.php index 4a655e5c6a..dc72c6f4e5 100644 --- a/system/modules/core/modules/Module.php +++ b/system/modules/core/modules/Module.php @@ -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++;