[TYPO3] Add items to HMENU / TMENU
Robert John de Stigter
robertjohn at bedrijvenweb.nl
Thu Jul 6 13:57:12 CEST 2006
Hi, thanks for your input. I found a solution.
lib.submenu.2 = TMENU
lib.submenu.2 {
itemArrayProcFunc = user_myfunctions->addItems
NO {
doNotLinkIt = 0
stdWrap.field = title
linkWrap = | <br>
}
}
The first argument within the function addItems will contain a array
with the existing menu items. You can freely edit and add to that array
and return it.
Cheers,
Robert
> -----Oorspronkelijk bericht-----
> Van: typo3-english-bounces at lists.netfielders.de
> [mailto:typo3-english-bounces at lists.netfielders.de] Namens Tyler Kraft
> Verzonden: donderdag 6 juli 2006 12:11
> Aan: typo3-english at lists.netfielders.de
> Onderwerp: Re: [TYPO3] Add items to HMENU / TMENU
>
> probably easiest to use a php postUserFunc via standard wrap...
>
> Or possible build the menu as a big COA object and generate
> the the menu object for that page differently (effectively
> making the menu become three seperate menus all joined up
> nicely in the html output with good use of wraps and such)
>
> hth
>
>
>
> Robert John de Stigter wrote:
> > Hi all,
> >
> > Is it possible to parse your TMENU or HMENU so you can add items to
> > the menu?
> >
> > I've tried special = userfunction for HMENU, but than you can only
> > create your own menu it seems, and not just add items.
> >
> > I've also tried ItemsProcFunc for TMENU but in that case
> you can just
> > modify the TMENU item itself.
> >
> > My case is: I have a page in my tree running a plugin and I want to
> > add subitems to that page linking to the same but with
> different parameters.
> > How do I work this out?
> >
> > Cheers,
> > RJ
> >
> >
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
More information about the TYPO3-english
mailing list