[TYPO3] Need very much help with foldout menu
Roelof Wobben
rwobben at hotmail.com
Sat Mar 3 21:08:34 CET 2007
Hello,
I got the menu working by changing the 1o.entrylevel =1 to 10.entrylevel = 0
I only dont see the images for folding in and out.
Roelof
>From: "Roelof Wobben" <rwobben at hotmail.com>
>Reply-To: TYPO3 English <typo3-english at lists.netfielders.de>
>To: typo3-english at lists.netfielders.de
>Subject: [TYPO3] Need very much help with foldout menu
>Date: Fri, 02 Mar 2007 20:11:44 +0000
>
>Hello,
>
>I have this TS :
>
>page.config.doctype = xhtml_trans
>
>
>// --- CONSTANTS start -----------------------
>
>lib.zmenu {
>
> imgFolder = typo3conf/ext/foldoutmenu/examples/vertical/images/
>
> collapseImg = arrow_right.gif
>
> expandImg = arrow_down.gif
>
>}
>
>// --- CONSTANTS end -------------------------
>
>
>
>
>
>
>
>// --- SETUP start ---------------------------
>
>includeLibs.foldoutmenu = typo3conf/ext/foldoutmenu/foldoutmenu.php
>
>
>
>lib.zmenu = COA
>
>lib.zmenu {
>
>
>
> 10 = HMENU
>
> 10.wrap = <div id="menuz"><ul>|</ul></div>
>
> 10.entryLevel = 1
>
> 10.1 = TMENU
>
> 10.1 {
>
> expAll = 1
>
> itemArrayProcFunc = user_foldoutMenu->getIfSubUidList
>
> NO {
>
> stdWrap.cObject = COA
>
> stdWrap.cObject {
>
> 10 = CLEARGIF
>
> 10.width=9
>
> 10.wrap = |
>
> 20 = TEXT
>
> 20.field = title
>
> }
>
> ATagParams = class="no"
>
> allWrap = <li>|</li>
>
> }
>
> CUR < .NO
>
> CUR = 1
>
> CUR.ATagParams = class="act"
>
> IFSUB < .NO
>
> IFSUB = 1
>
> IFSUB {
>
> doNotLinkIt = 1
>
> subst_elementUid = 1
>
> stdWrap.cObject = COA
>
> stdWrap.cObject {
>
> 10 >
>
> 10 = IMAGE
>
> 10.file = {$lib.zmenu.imgFolder}{$lib.zmenu.collapseImg}
>
> 10.altText = Click to open
>
> 10.titleText = Click to open
>
> 10.params = align="top" id="zmenu-{elementUid}-0"
>
> }
>
> linkWrap = <A href="javascript:;"
>onmousedown="zmenu.foldMenu('zmenu-{elementUid}');return false;"
>style="cursor: pointer;cursor: hand;" class="no">|</a>
>
> allWrap = <li>|<ul id="zmenu-{elementUid}">
>
> wrapItemAndSub = |</ul></li>
>
> }
>
> ACTIFSUB < .IFSUB
>
> ACTIFSUB = 1
>
> ACTIFSUB.stdWrap.cObject.10.file =
>{$lib.zmenu.imgFolder}{$lib.zmenu.expandImg}
>
> ACTIFSUB.stdWrap.cObject.10.altText = Click to close
>
> ACTIFSUB.stdWrap.cObject.10.titleText = Click to close
>
> ACTIFSUB.stdWrap.cObject.10.params = align="top"
>id="zmenu-{elementUid}-0"
>
> #ACTIFSUB.allWrap = <li>|<ul id="zmenu-{elementUid}"
>style="display:block;">
>
> CURIFSUB < .IFSUB
>
> CURIFSUB = 1
>
> CURIFSUB.linkWrap = <A
>onmousedown="zmenu.foldMenu('zmenu-{elementUid}');return false;"
>style="cursor: pointer;cursor: hand;" class="act">|</a>
>
> }
>
> 10.2 < .10.1
>
> 10.3 < .10.1
>
> 10.4 < .10.1
>
>
>
> 20 = TEXT
>
> 20.data = register:ifSubUidList
>
> 20.postUserFunc = user_foldoutMenu->JSWrapper
>
> 20.postUserFunc.prefix = zmenu
>
> 20.postUserFunc.startFolded = 1
>
> 20.postUserFunc.autoFold = 1
>
> 20.postUserFunc.foldCurrent = 1
>
> 20.postUserFunc.enableCookie = 1
>
> 20.postUserFunc.imagePath = {$lib.zmenu.imgFolder}
>
> 20.postUserFunc.imageSwap
>= ["{$lib.zmenu.collapseImg}","{$lib.zmenu.expandImg}"]
>
> 20.postUserFunc.altSwap = ["Click to open","Click to close"]
>
> 20.required = 1
>
>}
>
>page.10 < zmenu
>
>page = PAGE
>page.typeNum = 0
>page.10 = USER
>page.10.userFunc = tx_templavoila_pi1->main_page
>
>and this is my DS :
>
><?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
><T3DataStructure>
> <meta type="array">
> <langChildren type="integer">1</langChildren>
> <langDisable type="integer">0</langDisable>
> </meta>
> <ROOT type="array">
> <tx_templavoila type="array">
> <title>ROOT</title>
> <description>Select the HTML element on the page which you want to be
>the
>overall container element for the template.</description>
> </tx_templavoila>
> <type>array</type>
> <el type="array">
> <field_menu type="array">
> <tx_templavoila type="array">
> <title>menu</title>
> <description>menu</description>
> <sample_data type="array">
> <numIndex index="0">menu</numIndex>
> </sample_data>
> <eType>TypoScriptObject</eType>
> <tags>*:inner</tags>
> <TypoScriptObjPath>zmenu</TypoScriptObjPath>
> </tx_templavoila>
> </field_menu>
> <field_titel type="array">
> <tx_templavoila type="array">
> <title>titel</title>
> <description>titel</description>
> <sample_data type="array">
> <numIndex index="0">titel</numIndex>
> </sample_data>
> <eType>TypoScriptObject</eType>
> <TypoScriptObjPath>lib.titel</TypoScriptObjPath>
> </tx_templavoila>
> </field_titel>
> <field_datum type="array">
> <tx_templavoila type="array">
> <title>datum</title>
> <description>datum</description>
> <sample_data type="array">
> <numIndex index="0">Datum</numIndex>
> </sample_data>
> <eType>TypoScriptObject</eType>
> <TypoScriptObjPath>lib.datum</TypoScriptObjPath>
> </tx_templavoila>
> </field_datum>
> <field_content type="array">
> <tx_templavoila type="array">
> <title>content</title>
> <description>content</description>
> <sample_data type="array">
> <numIndex index="0">content</numIndex>
> </sample_data>
> <eType>ce</eType>
> <TypoScript>
> 10= RECORDS
> 10.source.current=1
> 10.tables = tt_content
> 10.wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end-->
> </TypoScript>
> <oldStyleColumnNumber type="integer">0</oldStyleColumnNumber>
> </tx_templavoila>
> <TCEforms type="array">
> <config type="array">
> <type>group</type>
> <internal_type>db</internal_type>
> <allowed>tt_content</allowed>
> <size>5</size>
> <maxitems>200</maxitems>
> <minitems>0</minitems>
> <multiple>1</multiple>
> <show_thumbs>1</show_thumbs>
> </config>
> <label>content</label>
> </TCEforms>
> </field_content>
> </el>
> </ROOT>
></T3DataStructure>
>
>What i try i don't see the menu.
>What did i doing wrong ?
>
>Roelof
>
>_________________________________________________________________
>Profiteer van de nieuwe, fantastische voordelen van Live Mail!
>http://imagine-windowslive.com/mail/launch/default.aspx?Locale=nl-nl
>
>_______________________________________________
>TYPO3-english mailing list
>TYPO3-english at lists.netfielders.de
>http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
_________________________________________________________________
Geef jouw Hotmail kleur met Windows Live Mail! Stap nu over!
http://imagine-windowslive.com/mail/launch/default.aspx?Locale=nl-nl
More information about the TYPO3-english
mailing list