[TYPO3] TMENU
Bas van der Togt
b.vandertogt at profinit.com
Mon Jan 22 22:43:34 CET 2007
Thanks for your reply again Peter!
I'm almost there.
The problem is that i'm using a GMENU.
How can i put the folowing part in a GMENU?
--- PART TO PUT IN GMENU ---
stdWrap.cObject = COA
stdWrap.cObject {
10 = TEXT
10.field = title
20 = LOAD_REGISTER
20.firstPos = 1
}
--- PART TO PUT IN GMENU ---
--- MY GMENU ---
NO {
wrap = <td height="31">|</td>
imgParams = onMouseOver="ShowHide('menubar','hidden')"
onMouseOut="ShowHide('menubar','visible')"
XY = 116,31
5 = IMAGE
5.file = fileadmin/templates/images/organisatie.gif
5.width = 116
5.height = 31
}
--- MY GMENU ---
--- ALL MY CODE ---
temp.MenuTopA = COA
temp.MenuTopA {
10 = HMENU
10.special = list
10.special.value = 66
10.1 = TMENU_LAYERS
10.1 {
expAll = 1
relativeToTriggerItem = 1
leftOffset = -190
topOffset = 31
hideMenuWhenNotOver = 1
hideMenuTimer = 1
freezeMouseover = 1
NO {
#wrap = <td height="31">|</td>
#imgParams = onMouseOver="ShowHide('menubar','hidden')"
onMouseOut="ShowHide('menubar','visible')"
#XY = 116,31
#5 = IMAGE
#5.file = fileadmin/templates/images/organisatie.gif
#5.width = 116
#5.height = 31
stdWrap.cObject = COA
stdWrap.cObject {
10 = TEXT
10.field = title
20 = LOAD_REGISTER
20.firstPos = 1
}
}
ACT = 1
ACT {
wrap = <td height="31">|</td>
imgParams = onMouseOver="ShowHide('menubar','hidden')"
onMouseOut="ShowHide('menubar','visible')"
XY = 116,31
5 = IMAGE
5.file = fileadmin/templates/images/organisatie-o.gif
5.width = 116
5.height = 31
}
RO = 1
RO {
wrap = <td width="116" height="31">|</td>
imgParams = onMouseOver="ShowHide('menubar','hidden')"
onMouseOut="ShowHide('menubar','visible')"
XY = 116,31
5 = IMAGE
5.file = fileadmin/templates/images/organisatie-o.gif
5.width = 116
5.height = 31
}
}
10.2 = TMENU_LAYERS
10.2 {
wrap = <div onmouseover="ShowHide('menubar','hidden')"
onMouseOut="ShowHideFF('menubar','visible')"
onMouseLeave="ShowHide('menubar','visible')"><table width="772"
border="0" cellspacing="0" cellpadding="0"><tr><td id="line" colspan="5"
width="772" height="7" bgcolor="#BED600"></td></tr><tr><td colspan="5"
width="772" height="2" bgcolor="#FFFFFF"><img src="clear.gif"
width="772" height="2"></td></tr><tr><td valign="top" width="183"><table
border="0" cellspacing="0" cellpadding="0"><tr><td width="183"
height="21" bgcolor="#BED600" class="menu-act"><table border="0"
cellspacing="0" cellpadding="3"><tr><td></td><td
class="menu-act">Organisatie</td></tr></table></td></tr><tr><td
bgcolor="#FFFFFF" height="1"><img src="clear.gif"
height="1"></td></tr></table>|</td><td bgcolor="#FFFFFF" width="2"><img
src="clear.gif" width="2"></td><td valign="top" width="422"><img
src="fileadmin/templates/images/overlay-o.gif" width="422"
height="148"></td><td bgcolor="#FFFFFF" width="2"><img src="clear.gif"
width="2"></td><td valign="top" width="163"><img
src="fileadmin/templates/images/right-organisatie.jpg" width="163"
height="146"></td></tr></table></div>
NO {
doNotLinkIt = 0
stdWrap.cObject = COA
stdWrap.cObject {
10 = COA
10 {
10 = TEXT
10.data = DB : pages:{field:pid}:title
10.insertData = 1
10.typolink.parameter.field = pid
10.wrap = <table border="0" cellspacing="0"
cellpadding="0"><tr><td colspan="2" width="183" height="21"
bgcolor="#B8B8B8"><table border="0" cellspacing="0"
cellpadding="3"><tr><td></td><td>|</td></tr></table></td></tr><tr><td
bgcolor="#FFFFFF" height="1"><img src="clear.gif" height="1"
width="180"></td></tr></table>
20 = LOAD_REGISTER
20.firstPos = 0
if.isTrue.data = register:firstPos
}
20 = COA
20 {
10 = TEXT
10.field = title
10.typolink.parameter.field = uid
10.wrap = <table border="0" cellspacing="0"
cellpadding="0"><tr><td colspan="2" width="183" height="21"
bgcolor="#B8B8B8"><table border="0" cellspacing="0"
cellpadding="3"><tr><td></td><td>|</td></tr></table></td></tr><tr><td
bgcolor="#FFFFFF" height="1"><img src="clear.gif" height="1"
width="180"></td></tr></table>
}
}
wrapItemAndSub = |
}
}
}
Peter Klein schreef:
> Hi Bas. If you want to add it to the 2nd level, its more something like this
> you need:
> http://lists.netfielders.de/pipermail/typo3-english/2006-December/034004.html
>
> Another way to do it, is to add a shortcut page on level 2 that points back
> to the the page on level 1.
>
> --
> Peter Klein / Umloud Untd
>
> "Bas van der Togt" <b.vandertogt at profinit.com> wrote in message
> news:mailman.1.1169468626.15308.typo3-english at lists.netfielders.de...
>> Thanks for your reply Peter!
>> This is what i'm looking for.
>> But i can't get it work.
>>
>> --- CUT ---
>> 10 = TEXT
>> 10.data = leveltitle:-2
>> 10.typolink.parameter.data = leveluid:-2
>> --- CUT ---
>>
>> I want to put it in front of this menu (only one time):
>>
>> temp.MenuTopA.2 = TMENU_LAYERS
>> temp.MenuTopA.2.wrap = <div class="menu2"></div>
>> temp.MenuTopA.2.NO {
>> ATagParams = class="menu"
>> allWrap = <div class="menu22"></div>
>> }
>>
>> temp.MenuTopA.2.IFSUB = 1
>> temp.MenuTopA.2.IFSUB {
>> ATagParams = class="menu"
>> allWrap = <table><tr><td></td></tr></table>
>> }
>>
>> Can you give me a hint?
>> Your help would be great!
>>
>> cheers,
>> Bas
>>
>> Peter Klein schreef:
>>> Hi Bas.
>>> Is it something like this you need?
>>>
>>> http://lists.netfielders.de/pipermail/typo3-english/2006-December/033993.html
>>> http://lists.netfielders.de/pipermail/typo3-english/2006-December/034004.html
>>>
>
>
More information about the TYPO3-english
mailing list