Bug #24260
closedBroken sitemaps
0%
Description
It seems there is something broken in using sitemaps.
Testcase:
TS:
---------------------------------------
page = PAGE
page.10 < styles.content.get
---------------------------------------
Demo tree:
Root page
_ Child 1
___ Child 1b
__Child 2
Creating a sitemap with mode "menu of subpages" with page "root page" as "selected pages" works fine
but:
- Having a sitemap with the same settings on page "child 1" shows a menu of subpages of child 1 => "child 1b". but of course it should be a menu of child 1 & child 2!!
hope the t3d works
(issue imported from #M16632)
Files
Updated by Ernesto Baschny almost 14 years ago
Instead of:
- $value = isset($this->conf['special.']['value.'])
- ? $GLOBALS['TSFE']->cObj->stdWrap($this->conf['special.']['value'], $this->conf['special.']['value.'])
- : $this->conf['special.']['value'];
+ $value = $this->parent_cObj->stdWrap($this->conf['special.']['value'], $this->conf['special.']['value.']);
What speaks against keeping the "speedup" condition but just using the corret cObject to do the work?
$value = isset($this->conf['special.']['value.'])
? $this->parent_cObj->stdWrap($this->conf['special.']['value'], $this->conf['special.']['value.'])
: $this->conf['special.']['value'];
Could you test it please?
Updated by Ernesto Baschny almost 14 years ago
In #24232 this case is also included and several others. Please test, give your +1 in the core list and it can go in! Thanks!