[TYPO3-core] RFC: 0013626: Feature: Resolve shortcut for menu state

Philipp Gampe phil at philippgampe.info
Fri Mar 19 21:23:20 CET 2010


Am 26.02.2010, 17:45 Uhr, schrieb Benjamin Mack <benni at typo3.org>:

> Hey,
>
> attached is a patch with better naming of the new method.
>
> Overall I like the patch, so you'll get a +1 after reading, but I'm
> unsure if this method shouldn't go somewhere else (tslib_content,
> tslib_fe, t3lib_pageSelect, or something like that), because I feel this
> method could be of greater use than *just* in the menu class.

-1 by testing

all item states of all menu entries are IFSUB afterwards

testcase:

1-CUR  Blog
    2-NO  Archiv
1-NO  Kalender
1-IFSUB  Einloggen
    2-NO  Afterlogin
    2-NO  OnlyGroup
1-IFSUB  test
    2-NO  TestShortcurt ---> Blog
1-NO  Impressum


TS:
   30 = HMENU
   30 {
     special = directory
     special.value = 4
     wrap = <div id="sidebar1">|</div>
     1 = TMENU
     1.wrap = <ul>|</ul>
     1.expAll = 1
     1.noBlur = 1
     1 {
     	NO = 1
     	NO.wrapItemAndSub = <li>1-NO &nbsp;|</li>	
     	ACT = 1
     	ACT.wrapItemAndSub = <li>1-ACT &nbsp;|</li>	
     	CUR = 1
     	CUR.wrapItemAndSub = <li>1-CUR &nbsp;|</li>	
     	IFSUB = 1
     	IFSUB.wrapItemAndSub = <li>1-IFSUB &nbsp;|</li>	
       }
     2 < .1
     2.NO.wrapItemAndSub = <li>2-NO &nbsp; |</li>
     2.ACT.wrapItemAndSub = <li>2-ACT &nbsp; |</li>
     2.CUR.wrapItemAndSub = <li>2-CUR &nbsp; |</li>
     2.IFSUB.wrapItemAndSub = <li>2-IFSUB &nbsp;|</li>
     }

If you leave out the IFSUB in TS, you get NO for all menu entries. It does  
not matter on which page you are or if you are logged in. CUR and ACT are  
not working any more.

Best regards
Phil

-- 
Philipp Gampe


More information about the TYPO3-team-core mailing list