[TYPO3-english] expAll= 0 not working in Tmenu with userfunction
Peter Klein
pmk at io.dk
Tue Jun 9 15:31:17 CEST 2009
Hi Antonio.
UserFunc menus is very tricky, specially with expAll and other parameters.
I have written a generic plugin that can be used to create menus with data
from other tables than pages.
It supports multilevel categories, all menu states and ExpAll, and has hooks
for extra processing of the data.
If you are interested, I can send you a copy of my ext? (Not on TER, as I
haven't had time to finish the manual)
--
Peter Klein / Umloud Untd.
"Tonix (Antonio Nati)" <tonix at interazioni.it> wrote in message
news:mailman.9260.1244543149.3168.typo3-english at lists.netfielders.de...
> I'm experiencing problems with multilevel menus based on userfunc.
> All is working as expected, except there is no way to make expAll = 0
> working.
>
> All menus are always expanded.
> Is this a know bug/limit, or can it be something specific to the userfunc?
> Any hint or specific documentation to look for?
>
> My code is:
>
> tmp.menusx = HMENU
> tmp.menusx {
> special = userfunction
> special {
> userFunc = user_tx_fbmagento_navigation->categories
> pid = 3123
> startcategory = 0
> }
>
> expAll = 0
>
> 1 = TMENU
> 1 {
> itemArrayProcFunc = user_tx_fbmagento_navigation->clear
> expAll = 0
> noBlur = 1
> NO.doNotLinkIt = 0
> NO.allWrap = <div class="sub-level1">|</div>
> ACT = 1
> ACT.doNotLinkIt = 1
> ACT.allWrap = <div class="sub-level1">|</div>
> CUR = 1
> CUR.doNotLinkIt = 1
> CUR.allWrap = <div class="sub-level1">|</div>
> }
>
> 2 = TMENU
> 2 {
> itemArrayProcFunc = user_tx_fbmagento_navigation->clear
> expAll = 0
> noBlur = 1
> NO.doNotLinkIt = 0
> NO.allWrap = <div class="sub-level2">- |</div>
> ACT = 1
> ACT.doNotLinkIt = 0
> ACT.allWrap = <div class="sub-level2">- |</div>
> CUR = 1
> CUR.doNotLinkIt = 0
> CUR.allWrap = <div class="sub-level2">- |</div>
> }
>
> 3 = TMENU
> 3 {
> itemArrayProcFunc = user_tx_fbmagento_navigation->clear
> expAll = 0
> noBlur = 1
> NO.doNotLinkIt = 0
> NO.allWrap = <div class="sub-level3">-- |</div>
> ACT = 1
> ACT.doNotLinkIt = 1
> ACT.allWrap = <div class="sub-level3">-- |</div>
> CUR = 1
> CUR.doNotLinkIt = 1
> CUR.allWrap = <div class="sub-level3">-- |</div>
> }
> }
>
> Thanks,
>
> Tonino
>
> --
> ------------------------------------------------------------
> Inter at zioni Interazioni di Antonio Nati
> http://www.interazioni.it
> @interazioni.it ------------------------------------------------------------
>
More information about the TYPO3-english
mailing list