[TYPO3] disable caching of cObject HMENU
Peter Russ
peter.russ at 4many.net
Thu Feb 8 16:57:19 CET 2007
christian oettinger schrieb:
> Hi list,
>
>
>
> In my typo3-Installation I have a HMENU.
> On one page I override a part of this menu with itemArrayProcFunc. On
> this page I would like caching of the menu to be disabled (similar to
> USER_INT), otherwise the function can't work properly. I can not disable
> caching of the whole page, for I use indexed_search.
>
> thanks for any hint & cheers!
>
> christian
>
>
>
>
>
> Code of my menu:
> ____________
>
>
> page.15 = HMENU
> page.15 {
> stdWrap.wrap = <div id="menu2">|</div>
> entryLevel = 1
> }
> page.15.1 = TMENU
> page.15.1.target = _top
> page.15.1 {
> fontColor = #ffffff
> expAll = 0
> NO {
> linkWrap = <SPAN class="zweiteebene"> |</SPAN><BR>
> ATagBeforeWrap = 1
> }
> ACT < page.15.1.NO
> ACT = 1
> ACT {
> linkWrap = <SPAN class="womanist2"> | </SPAN><BR>
> ATagBeforeWrap = 1
> }
> SPC {
> allWrap=|{$smallcleargif}<br>
> doNotLinkIt = 1
> doNotShowLink = 0
> }
> }
>
>
> includeLibs.oemenuitems = fileadmin/scripts/oe_itemArrayProcFunc.php
>
> page.15.2 = TMENU
> page.15.2 {
> fontColor = #ffffff
> expAll = 0
> itemArrayProcFunc = user_itemArrayProcFuncTest
> itemArrayProcFunc.userFunc.oe_table = {$oe_menu_table}
>
> # bit tricky to explain: The typplink below creates a GET variable to
> # choose whi record shall be shown. The name if that GET variable is set
> # inside of typolink by the line additionalParams.wrap
> # In the script we need that name again for NO/ACT-behaviour so here
> # we pass the parts of that name to the script. This is done for a
> Standard
> # Showuid-Variabel here. Example:
> # additionalParams.wrap= &table_whichpi[showUid]=|
> # itemArrayProcFunc.userFunc.oe_getvar_part1 = table_whichpi
> # itemArrayProcFunc.userFunc.oe_getvar_part2 = showUid
>
> itemArrayProcFunc.userFunc.oe_getvar_part1 = tx_oecertificates_pi1
> itemArrayProcFunc.userFunc.oe_getvar_part2 = showUid
>
> itemArrayProcFunc.userFunc.select.pidInList = {$certificatesfolder}
> itemArrayProcFunc.userFunc.select.orderBy = sorting
> NO {
> doNotLinkIt = 1
> ATagBeforeWrap = 1
> linkWrap = |
> stdWrap {
> data = field:name
> typolink {
> wrap = <SPAN class="dritteebene"> |</SPAN><BR>
> ATagBeforeWrap = 1
> parameter.data = TSFE:id
> additionalParams.field= uid
> additionalParams.wrap= &tx_oecertificates_pi1[showUid]=|
> }
> }
> #stdWrap.data = debug:data
> }
>
> ACT < .NO
> ACT = 1
> ACT {
> stdWrap {
> typolink {
> wrap = <SPAN class="womanist3"> |</SPAN><BR>
> #wrap = <SPAN class="womanist3"> |</SPAN><BR>
> ATagBeforeWrap = 1
> }
> }
> }
> }
Did you try to wrap the menu with a COA_INT?
Just an idea.
Regs. Peter.
--
Fiat lux!
Docendo discimus.
_____________________________
4Many® Services
openBC: http://www.openbc.com/go/invuid/Peter_Russ
More information about the TYPO3-english
mailing list