[TYPO3] fold out menu problem
Roelof Wobben
rwobben at hotmail.com
Thu Feb 8 20:18:38 CET 2007
Hello,
Im trying to get this menu working.
My setup looks like this :
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
}
// --- CSS Styles start ----------------------
page.CSS_inlineStyle (
#menuz {width: 160px;font: normal normal normal 11px/13px Arial, Helvetica,
sans-serif;}
#menuz ul {list-style: none;margin: 0px;padding: 0px;}
#menuz ul ul {display:none;}
#menuz A.no, #menuz A.act {color: #000000;text-decoration: none;}
#menuz A.act, #menuz A.act:hover { font-weight : bold;}
#menuz {border-top:1px solid black;border-right:1px solid
black;border-left:1px solid black;}
#menuz A {display:block;border-bottom:1px solid #005073;padding: 3px 5px
3px 5px;}
*html #menuz A {width: 100%;} /* IE */
#menuz UL IMG {margin:2px 3px 2px 0px;}
#menuz UL UL IMG {margin-left:6px;}
#menuz UL UL UL IMG {margin-left:12px;}
#menuz UL A {background: #0191cc;}
#menuz UL A:hover {background: #80c8e6;}
#menuz UL LI UL A {background: #3ebcef;}
#menuz UL LI UL A:hover {background: #9fdef7;}
#menuz UL LI UL LI UL A {background: #8dcff3;}
#menuz UL LI UL LI UL A:hover {background: #c6e7f9;}
#menuz UL LI UL LI UL LI UL A {background: #aee1fd;}
#menuz UL LI UL LI UL LI UL A:hover {background: #ebf7fe;}
)
// --- CSS Styles end ------------------------
// --- SETUP end -----------------------------
# Default PAGE object:
page = PAGE
page.typeNum = 0
page.40 = USER
page.40.userFunc = tx_templavoila_pi1->main_page
My DS looks like this :
<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
<T3DataStructure>
<meta type="array">
<langDisable>1</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>lib.menu_1</TypoScriptObjPath>
</tx_templavoila>
</field_menu>
<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>
But i dont see any menu.
What's went wrong ??
Roelof
_________________________________________________________________
Windows Live Mail: Kies je eigen kleur, indeling en contacten!
http://imagine-windowslive.com/mail/launch/default.aspx?Locale=nl-nl
More information about the TYPO3-english
mailing list