[TYPO3-english] Page in multiple menus - ACT and CUR state
Daniel Huf
d.huf at theoreme.ch
Tue Aug 7 08:38:42 CEST 2012
I cheated a bit, but it works for me...
As I have shortcuts to pages, I use the destination as a page.
temp.mainMenu.pages = CONTENT
temp.mainMenu.pages {
table = pages
select {
pidInList = {$PID.menu.main}
andWhere = hidden = 0 AND deleted = 0
}
renderObj = COA
renderObj {
10 = TEXT
10.field = shortcut
10.wrap = |,
}
}
And then I use the list of pages as page list for the menu like that:
20.special = list
20.special.value.cObject < temp.mainMenu.pages
Hope that helps...
Good luck, if you find a better way I'd be glad to hear about.
Daniel
On 8/6/12 12:10 PM, Ulrich Witschass wrote:
> Hello Typo3 community,
>
> I am currently facing the following problem I can't seem to solve:
>
> The Typo3 Site I currently work on has multiple menus (four, to be exact).
>
> One of them acts as a "quick link" menu, having shortcuts to pages present in the other menus, like so:
>
> Menu A (Sysfolder)
> Page 1
> Page 1.1
> Page 2
> Page 3
>
> Menu B (Sysfolder)
> Page 4
> Page 5
>
>
> Quicklinks (Sysfolder)
> Shortcut Page 1
> Shortcut Page 4
>
>
> It is necessary that if Page 2 in Menu A is clicked, the Entry in the Quicklinks menu also is highlighted (bold), so basically it needs to get the cur state.
>
> At the moment, it only gets this if the Page is clicked in the Quicklinks menu.
>
> Basically: regardless where a page is clicked, it should be shown with a CUR class in all menus.
>
> Is this possible, and if so, how do I achieve this?
>
> Thanks to all in advance for any and all help provided
>
> tuo
>
More information about the TYPO3-english
mailing list