[TYPO3-english] TMENU and overrideID
Markus Deckmann
Markus.Deckmann79 at web.de
Mon Apr 27 23:19:44 CEST 2009
Hi Christopher,
>> The usecase for this:
>>
>> +-----------------------------------------------------------------+
>> | Content Site 1 |
>> | |
>> +-----------------------------------------------------------------+
>> | Submenu with menu of subsites from Site 1 |
>> +-----------------------------------------------------------------+
>> | Content Site 1.x, depends on selection in submenu |
>> | |
>> +-----------------------------------------------------------------+
>
> So you want every page in the menu to have the url of the current
> page? (This is what I understand the explanation of overrideId in the
> TSref to say...) Seems like a weird requirement, but anyhow, you can
> just do something like this:
The example shows the structure of my template. Block 1 are the
maincontent of the site, block 2 are the submenu and block 3 should be
the content of the choosen site from submenu.
This view are the view for detail and will used if a user choose a
address from addressmanagement. Block one allways show the selected
address, in block 2 the user have the opinion to choose between a
different sub-views depending on the selected address.
If user choose a submenu-item and choose in this way one of the
specified sub-views the menu should link allways on the active site and
give me a further parameter (overrideID should append real_uid) for
showing the content from selected subpage and show it in block 3.
> temp.submenu = HMENU
> temp.submenu.entryLevel = 2
> temp.submenu {
> 1 = TMENU
> 1 {
> wrap = <ul class="menu">|</ul>
> expAll = 1
> NO {
> wrapItemAndSub = <li onmouseover="show(this)"
> onmouseout="hide(this)">|</li>
> doNotLinkIt = 1
> stdWrap.cObject = TEXT
> stdWrap.cObject {
> data = page:title
> typolink {
> parameter.field = pid
> }
> }
> }
>
> ACT < .NO
> ACT = 1
> ACT.ATagParams = class="active"
> }
> }
I will try this solution, maybe it works for me...
Bye Markus
More information about the TYPO3-english
mailing list