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

ChandaCole chandacole at gmail.com
Mon Aug 6 04:34:32 CEST 2012


Hello Loek,

I tried both options and was successful with the approach in the link you
provided.  It took some playing around with to get the correct wrapping of
css for the prepended item so that it would display in line with the
existing menu correctly, but that was just part of my learning curve.  I
think both your other suggestion and Jan's would also work, this just
happened to be the one I could get working the quickest with my limited
knowledge.

Thank you both again for all your help!
Chanda



Loek Hilgersom-2 wrote:
> 
> Hi Chanda and Jan,
> 
> There is also a different approach: remove the shortcut page 'home'
> entirely and 
> prepend a link to the site-root home page to the menu.
> 
> Some examples:
> 
> globalMenu {
> 	....
> 	stdWrap.preCObject = TEXT
> 	stdWrap.preCObject {
> 		typolink.parameter = {$pages.home}
> 		wrap.cObject = TEXT
> 		wrap.cObject {
> 			value = |
> 			if.value = {$pages.home}
> 			if.equals.data = TSFE:id
> 		}
> 	}
> 	....
> 
> where {$pages.home} is of course a constant with the id of the site root
> page.
> 
> Or a different implementation in an old thread here:
> http://lists.typo3.org/pipermail/typo3-english/2007-July/040998.html
> 
> I like it because I don't like spreading the Typoscript templates all over
> the 
> page tree. It also avoids the additional realurl issues and you don't have
> that 
> double home page.
> 
> Loek
> 
> 

-- 
View this message in context: http://old.nabble.com/Active-Link-in-Menu-When-Viewing-Home-Page-tp34238912p34259279.html
Sent from the TYPO3 English mailing list archive at Nabble.com.



More information about the TYPO3-english mailing list