[TYPO3-english] Condition Based on pageid in menu script

bernd wilke t3ng at bernd-wilke.net
Wed Aug 27 12:12:34 CEST 2014


Am 27.08.14 11:01, schrieb yogesh shishangiya:
> But How can condition for current menu also ...:)
>
your TS-conditions depend on the id of the page which currently is displayed

what you want is a condition based on the id of the page, the menuitem 
is generated for. this could be done by stdWrap.if
for a pidupinrootline condition it would be very complex.

you may choose an easier solution based on css classes: you may include 
the page-id for each menu-item inside the item-wrap and do a css :before 
{ content:'m'; }
at the appropiate elements.


or you find a solution based on userfunctions

bernd
-- 
http://www.pi-phi.de/cheatsheet.html


More information about the TYPO3-english mailing list