[TYPO3] Navigation from other table than pages
christian oettinger
christian.oettinger at gmx.de
Sun Jan 28 17:50:08 CET 2007
Seems I found a possible solution, but with a slightly differnet start:
There is an example script in media/scripts for a function for menu
objects that is called itemArrayProcFunc. This funtion let's you include
a script in a menu object, in which you can alter the menu array, that
is used for outputting the menu. I haven't solved it completely yet, now
working on the script, but I think it is the right way.
The difference to my first try: Now I only change the array for 15.2.,
so one of my the menu objects (TMENU), not the whole Content Object 15
(HMENU).
Inside my script, I add a new aray key "oe_name" that is used for
creating the menu.
If anyone can comment on this try I would be glad. Especially if there
could result Problems, for example with realURL (But I think it just
uses the URL that is generated in the end, so no problems should be
expected).
I'll later update this post with php code (when I know more).
until now, thanks for comments and greetings from munich
christian
Below my setup to include my script:
# include script
includeLibs.fakemenuitems = fileadmin/scripts/oe_itemArrayProcFunc.php
# choose pid of folder, wehre the certifikates lie
lib.fakemenuitems.special.userFunc.select.pidInList = 28
# choose table (when set, standard (pages) is NOT used!)
lib.fakemenuitems.special.userFunc.table = tx_oecertificates_certificates
page.15.2 = TMENU
page.15.2 {
# choose function that alters the menu array
itemArrayProcFunc = user_itemArrayProcFuncTest
# passing 2 variables to the function
itemArrayProcFunc.userFunc.table = tx_oecertificates_certificates
itemArrayProcFunc.userFunc.pid = 28
fontColor = #ffffff
expAll = 0
NO.linkWrap = <SPAN class="dritteebene"> |</SPAN><BR>
# this is a new aray key I use for output. (added to menu array
inside my script)
NO.stdWrap.data = field:oe_name
NO.ATagBeforeWrap = 1
ACT < .NO
ACT = 1
ACT.linkWrap = <SPAN class="womanist3"> | </SPAN><BR>
ACT.ATagBeforeWrap = 1
SPC = 1
SPC.allWrap=|{$smallcleargif}<br>
SPC.doNotLinkIt = 1
SPC.doNotShowLink = 1
}
More information about the TYPO3-english
mailing list