[TYPO3-english] Active Link in Menu When Viewing Home Page
ChandaCole
chandacole at gmail.com
Thu Aug 2 04:06:23 CEST 2012
Hi Jan,
Thanks for the quick reply, at least I know I am on the right track! I have
tried adding the alwaysActivePid entry but it does not seem to make a change
(even after clearing all caches). I've posted the relevant code below if
you don't mind taking a quick peek - as I said I'm very new at this and just
might be missing something in the syntax. I haven't added the entry to
remove it for the next level, just wanted to see part work first.
Chanda
globalMenu >
globalMenu = HMENU
globalMenu.entryLevel = 0
globalMenu.wrap = <div id="globalMenu-outer"><div id="globalMenu">| <div
class="clear"></div></div></div><!-- end #globalMenu -->
globalMenu.1 = TMENU
globalMenu.1 {
expAll=1
alwaysActivePid = 156
wrap = <ul class="adxm menu"> | </ul>
noBlur = 1
NO {
ATagParams = class="top_parent"
wrapItemAndSub = <li> | </li>
}
ACT = 1
ACT {
ATagParams = class="top_parent"
wrapItemAndSub = <li class="active"> | </li>
}
ACTIFSUB = 1
ACTIFSUB {
ATagParams = class="top_parent"
wrapItemAndSub = <li class="active_dir"> | </li>
}
IFSUB = 1
IFSUB {
ATagParams = class="top_parent"
wrapItemAndSub = <li class="dir"> | </li>
}
}
globalMenu.2 = TMENU
globalMenu.2 {
expAll=1
wrap = <ul> | </ul>
noBlur = 1
NO {
ATagParams = class="parent"
wrapItemAndSub = <li> | </li>
}
}
Jan Bednarik wrote:
>
> Hi Chanda,
>
> the way I do it that I create shortcut to the root page labeled Home, so
> it would appear in the menu. Then to make it active on the homepage, I add
>
> alwaysActivePid = XXX
>
> to the definition of the menu. And then I add template on next level,
> where I remove it
>
> alwaysActivePid >
>
> It may not be the best way, but it works. Maybe someone will come up
> with something better.
>
> Regards
>
> Jan
>
>
--
View this message in context: http://old.nabble.com/Active-Link-in-Menu-When-Viewing-Home-Page-tp34238912p34243604.html
Sent from the TYPO3 English mailing list archive at Nabble.com.
More information about the TYPO3-english
mailing list