[TYPO3-english] Active Link in Menu When Viewing Home Page

Jan Bednarik info at bednarik.org
Sat Aug 4 10:44:39 CEST 2012


Hi Chanda,

you need to create an extension template on the root page and in the 
root template set it as "Template on next level". In this extension 
template, place only 1 line of code into Setup:

globalMenu.alwaysActivePIDlist >

And that's it.

If you create this extension template via List module, make sure it's 
listed as second and the main template is first.

Regards

Jan

Dne 2.8.2012 5:05, ChandaCole napsal(a):
>
> Hello Jan,
>
> Since my last response I have got the Home link to show as active, just took
> some playing with to figure out exactly where to set the value.  So, it is
> now working with
>
> globalMenu.alwaysActivePIDlist = 156
>
> I am having trouble now with where to place the second line of code to
> remove the always active link.  I have tried it at the globalMenu.1 level,
> and also within globalMenu.1 states of NO and ACT, but the Home link remains
> active regardless of the page I am viewing.
>
> Thanks again for your help!
> Chanda
>
>
>
> 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
>>
>>
>>
>



More information about the TYPO3-english mailing list