|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Hello list,
I want to show the level 1 page text again above the second layer menu. How can i do this? cheers, Bas My code: # Menu Top A - Organisatie temp.MenuTopA = HMENU temp.MenuTopA.special = list temp.MenuTopA.special.value = 66 temp.MenuTopA.1 = GMENU_LAYERS temp.MenuTopA.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 || fileadmin/templates/images/organisatie-en.gif 5.width = 116 5.height = 31 } } temp.MenuTopA.1.ACT = 1 temp.MenuTopA.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 } temp.MenuTopA.1.RO = 1 temp.MenuTopA.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 } temp.MenuTopA.2 = TMENU_LAYERS temp.MenuTopA.2.wrap = <div onmouseover="ShowHide('menubar','hidden')" onMouseOut="ShowHideFF('menubar','visible')" onMouseLeave="ShowHide('menubar','visible')"><tabl e 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> temp.MenuTopA.2.NO { ATagParams = class="menu" allWrap = <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> } temp.MenuTopA.2.IFSUB = 1 temp.MenuTopA.2.IFSUB { ATagParams = class="menu" allWrap = <table border="0" cellspacing="0" cellpadding="0"><tr><td colspan="2" width="183" height="21" bgcolor="#B8B8B8"><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td><table border="0" cellspacing="0" cellpadding="3"><tr><td></td><td>|</td></tr></table></td><td align="right"><img src="fileadmin/templates/images/arrow.gif"></td></tr></table></td></tr><tr><td bgcolor="#FFFFFF" height="1"><img src="clear.gif" height="1"></td></tr></table> } _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
| Sponsored Links |
|
#2
|
|||
|
|||
|
Hi Bas.
Is it something like this you need? http://lists.netfielders.de/pipermai...er/033993.html http://lists.netfielders.de/pipermai...er/034004.html -- Peter Klein/Umloud Untd "Bas van der Togt" <b.vandertogt (AT) profinit (DOT) com> skrev i en meddelelse news:mailman.1.1169383283.12931.typo3-english (AT) lists (DOT) netfielders.de... > Hello list, > I want to show the level 1 page text again above the second layer menu. > How can i do this? > > cheers, > Bas > > My code: > > # Menu Top A - Organisatie > temp.MenuTopA = HMENU > temp.MenuTopA.special = list > temp.MenuTopA.special.value = 66 > temp.MenuTopA.1 = GMENU_LAYERS > temp.MenuTopA.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 || > fileadmin/templates/images/organisatie-en.gif > 5.width = 116 > 5.height = 31 > } > } > temp.MenuTopA.1.ACT = 1 > temp.MenuTopA.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 > } > > temp.MenuTopA.1.RO = 1 > temp.MenuTopA.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 > } > > temp.MenuTopA.2 = TMENU_LAYERS > temp.MenuTopA.2.wrap = <div onmouseover="ShowHide('menubar','hidden')" > onMouseOut="ShowHideFF('menubar','visible')" > onMouseLeave="ShowHide('menubar','visible')"><tabl e 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> > temp.MenuTopA.2.NO { > ATagParams = class="menu" > allWrap = <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> > } > > temp.MenuTopA.2.IFSUB = 1 > temp.MenuTopA.2.IFSUB { > ATagParams = class="menu" > allWrap = <table border="0" cellspacing="0" cellpadding="0"><tr><td > colspan="2" width="183" height="21" bgcolor="#B8B8B8"><table width="100%" > cellpadding="0" cellspacing="0" border="0"><tr><td><table border="0" > cellspacing="0" > cellpadding="3"><tr><td></td><td>|</td></tr></table></td><td > align="right"><img > src="fileadmin/templates/images/arrow.gif"></td></tr></table></td></tr><tr><td > bgcolor="#FFFFFF" height="1"><img src="clear.gif" > height="1"></td></tr></table> > } _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#3
|
|||
|
|||
|
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/pipermai...er/033993.html > http://lists.netfielders.de/pipermai...er/034004.html > _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#4
|
|||
|
|||
|
Hi Bas. If you want to add it to the 2nd level, its more something like this
you need: http://lists.netfielders.de/pipermai...er/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 (DOT) com> wrote in message news:mailman.1.1169468626.15308.typo3-english (AT) lists (DOT) 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/pipermai...er/033993.html >> http://lists.netfielders.de/pipermai...er/034004.html >> _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#5
|
|||
|
|||
|
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')"><tabl e 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 id}:title10.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/pipermai...er/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 (DOT) com> wrote in message > news:mailman.1.1169468626.15308.typo3-english (AT) lists (DOT) 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/pipermai...er/033993.html >>> http://lists.netfielders.de/pipermai...er/034004.html >>> > > _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#6
|
|||
|
|||
|
> 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 --- Interesting question, especially when you take a look at your Subject "TMENU" and your code, which seems to be a TMENU_LAYERS using GMENU parameters inside its items ;-) But lets take a closer look to the GMENU problem. This is what I understood: 1. You need the parent page of each submenu 2. You want to render the title of this parent page just once before each submenu 3. You want to do that using a GMENU Some useful information: 1. The parent page can be identified by the pid field of each item inside the submenu. 2. GMENU items got a special property called allStdWrap, or if you like it better they can use stdWrap together with the allWrap property too. 3. You can use a register that is set after the first item of a submenu is rendered by the engine and check if the pid is the same or not 4. The GIFBUILDER TEXT Element which is used for GMENU items can be filled using stdWrap So what you need is a GIFBUILDER element created using the title value of a page identified by the pid value of a submenuitem that will be rendered only before the first item of this submenu which can be recognized by the register using the allStdWrap property of the item - easy, isn't it? ;-) NO { ######################################### ### This will render a COA before the menu item ### ### but only if the pid does not equal the one in ### ### the register which means we are in another ### ### submenu now ### ######################################### allStdWrap.prepend = COA allStdWrap.prepend { if { value.field = pid equals.data = register arentPagenegate = 1 } wrap = <yourwrap>|</goeshere> 10 = IMAGE 10 { ################################### ### Same setup as your GMENU items ### ################################### file = GIBUILDER file { XY = 116,31 backColor = #XXYYZZ 5 = TEXT 5 { ##################################### ### Here we get the title of the parent page ### ##################################### text.cObject = COA text.cObject { 10 = RECORDS 10 { source.field = pid tables = pages conf.pages = TEXT conf.pages { field = title } } } } } } ####################################### ### here we fill the current pid into the register ### ### so the next item wont get the title anymore ### ####################################### 20 = LOAD_REGISTER 20 { parentPage.cObject = TEXT parentPage.cObject.field = pid } } } Not tested, but should be working. Joey -- Wenn man keine Ahnung hat: Einfach mal Fresse halten! (If you have no clues: simply shut your knob sometimes!) Dieter Nuhr, German comedian openBC/Xing: http://www.cybercraft.de T3 cookbook: http://www.typo3experts.com _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#7
|
|||
|
|||
|
Hi Joey!
Good to hear from you again. This code is getting a bit confused for me... ![]() It's not working yet. Can you give me a hint? This is my whole code: temp.MenuTopA = COA temp.MenuTopA { 10 = HMENU 10.special = list 10.special.value = 66 10.1 = GMENU_LAYERS 10.1 { expAll = 1 relativeToTriggerItem = 1 leftOffset = -190 topOffset = 31 hideMenuWhenNotOver = 1 hideMenuTimer = 1 freezeMouseover = 1 NO { allStdWrap.prepend = COA allStdWrap.prepend { if { value.field = pid equals.data = register arentPagenegate = 1 } wrap = <td height="31">|</td> imgParams = onMouseOver="ShowHide('menubar','hidden')" onMouseOut="ShowHide('menubar','visible')" 10 = IMAGE 10.file = fileadmin/templates/images/organisatie.gif 10 { file = GIBUILDER file { XY = 116,31 backColor = #000000 5 = TEXT 5 { text.cObject = COA text.cObject { 10 = RECORDS 10 { source.field = pid tables = pages conf.pages = TEXT conf.pages { field = title } } } } } } 20 = LOAD_REGISTER 20 { parentPage.cObject = TEXT parentPage.cObject.field = pid } } 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')"><tabl e 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 id}:title10.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 = | } } } JoH asenau schreef: >> 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 --- > > Interesting question, especially when you take a look at your Subject > "TMENU" and your code, which seems to be a TMENU_LAYERS using GMENU > parameters inside its items ;-) > > But lets take a closer look to the GMENU problem. This is what I understood: > > 1. You need the parent page of each submenu > 2. You want to render the title of this parent page just once before each > submenu > 3. You want to do that using a GMENU > > Some useful information: > 1. The parent page can be identified by the pid field of each item inside > the submenu. > 2. GMENU items got a special property called allStdWrap, or if you like it > better they can use stdWrap together with the allWrap property too. > 3. You can use a register that is set after the first item of a submenu is > rendered by the engine and check if the pid is the same or not > 4. The GIFBUILDER TEXT Element which is used for GMENU items can be filled > using stdWrap > > So what you need is a GIFBUILDER element created using the title value of a > page identified by the pid value of a submenuitem that will be rendered only > before the first item of this submenu which can be recognized by the > register using the allStdWrap property of the item - easy, isn't it? ;-) > > NO { > ######################################### > ### This will render a COA before the menu item ### > ### but only if the pid does not equal the one in ### > ### the register which means we are in another ### > ### submenu now ### > ######################################### > allStdWrap.prepend = COA > allStdWrap.prepend { > if { > value.field = pid > equals.data = register arentPage> negate = 1 > } > wrap = <yourwrap>|</goeshere> > 10 = IMAGE > 10 { > ################################### > ### Same setup as your GMENU items ### > ################################### > file = GIBUILDER > file { > XY = 116,31 > backColor = #XXYYZZ > 5 = TEXT > 5 { > ##################################### > ### Here we get the title of the parent page ### > ##################################### > text.cObject = COA > text.cObject { > 10 = RECORDS > 10 { > source.field = pid > tables = pages > conf.pages = TEXT > conf.pages { > field = title > } > } > } > } > } > } > ####################################### > ### here we fill the current pid into the register ### > ### so the next item wont get the title anymore ### > ####################################### > 20 = LOAD_REGISTER > 20 { > parentPage.cObject = TEXT > parentPage.cObject.field = pid > } > } > } > > Not tested, but should be working. > > Joey > _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#8
|
|||
|
|||
|
Hi Joey!
Good to hear from you again. This code is getting a bit confused for me... ![]() It's not working yet. Can you give me a hint? This is my whole code: temp.MenuTopA = COA temp.MenuTopA { 10 = HMENU 10.special = list 10.special.value = 66 10.1 = GMENU_LAYERS 10.1 { expAll = 1 relativeToTriggerItem = 1 leftOffset = -190 topOffset = 31 hideMenuWhenNotOver = 1 hideMenuTimer = 1 freezeMouseover = 1 NO { allStdWrap.prepend = COA allStdWrap.prepend { if { value.field = pid equals.data = register arentPagenegate = 1 } wrap = <td height="31">|</td> imgParams = onMouseOver="ShowHide('menubar','hidden')" onMouseOut="ShowHide('menubar','visible')" 10 = IMAGE 10.file = fileadmin/templates/images/organisatie.gif 10 { file = GIBUILDER file { XY = 116,31 backColor = #000000 5 = TEXT 5 { text.cObject = COA text.cObject { 10 = RECORDS 10 { source.field = pid tables = pages conf.pages = TEXT conf.pages { field = title } } } } } } 20 = LOAD_REGISTER 20 { parentPage.cObject = TEXT parentPage.cObject.field = pid } } 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')"><tabl e 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 id}:title10.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 = | } } } JoH asenau schreef: >> 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 --- > > Interesting question, especially when you take a look at your Subject > "TMENU" and your code, which seems to be a TMENU_LAYERS using GMENU > parameters inside its items ;-) > > But lets take a closer look to the GMENU problem. This is what I understood: > > 1. You need the parent page of each submenu > 2. You want to render the title of this parent page just once before each > submenu > 3. You want to do that using a GMENU > > Some useful information: > 1. The parent page can be identified by the pid field of each item inside > the submenu. > 2. GMENU items got a special property called allStdWrap, or if you like it > better they can use stdWrap together with the allWrap property too. > 3. You can use a register that is set after the first item of a submenu is > rendered by the engine and check if the pid is the same or not > 4. The GIFBUILDER TEXT Element which is used for GMENU items can be filled > using stdWrap > > So what you need is a GIFBUILDER element created using the title value of a > page identified by the pid value of a submenuitem that will be rendered only > before the first item of this submenu which can be recognized by the > register using the allStdWrap property of the item - easy, isn't it? ;-) > > NO { > ######################################### > ### This will render a COA before the menu item ### > ### but only if the pid does not equal the one in ### > ### the register which means we are in another ### > ### submenu now ### > ######################################### > allStdWrap.prepend = COA > allStdWrap.prepend { > if { > value.field = pid > equals.data = register arentPage> negate = 1 > } > wrap = <yourwrap>|</goeshere> > 10 = IMAGE > 10 { > ################################### > ### Same setup as your GMENU items ### > ################################### > file = GIBUILDER > file { > XY = 116,31 > backColor = #XXYYZZ > 5 = TEXT > 5 { > ##################################### > ### Here we get the title of the parent page ### > ##################################### > text.cObject = COA > text.cObject { > 10 = RECORDS > 10 { > source.field = pid > tables = pages > conf.pages = TEXT > conf.pages { > field = title > } > } > } > } > } > } > ####################################### > ### here we fill the current pid into the register ### > ### so the next item wont get the title anymore ### > ####################################### > 20 = LOAD_REGISTER > 20 { > parentPage.cObject = TEXT > parentPage.cObject.field = pid > } > } > } > > Not tested, but should be working. > > Joey > _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#9
|
|||
|
|||
|
> Good to hear from you again.
> This code is getting a bit confused for me... ![]() > It's not working yet. > Can you give me a hint? > > This is my whole code: <snip> The code you posted is neither a TMENU (subject) nor a GMENU (content of your last post) _and_ you are using the snippet I gave you in a completely wrong place. Your structure is: Level 1 => GMENU_LAYERS Level 2 => TMENU_LAYERS as far as I understood your last post and with a bit of imgagination I guess you want to put an IMAGE before each TMENU_LAYERS. So there is no reason to put it into the GMENU_LAYERS, since this would not give you the desired result. Since your second level menu is a TMENU_LAYERS you should use the before option that is available for the items of both TMENU and TMENU_LAYERS. together with an optionSplit you can be sure, that the image will only be rendered before the first item: NO { before.cObject = IMAGE |*| 0 |*| before.cObject { file = GIFBUILDER file { the rest of the setup I posted before } } beforeWrap = <yourwrap>|</goeshere> the rest of your NO setup } similar stuff should be done for the other item states like ACT, CUR etc. If you don't want to use an image (since it's a TMENU_LAYERS) you can do it with a TEXT element too. HTH Joey -- Wenn man keine Ahnung hat: Einfach mal Fresse halten! (If you have no clues: simply shut your gob sometimes!) Dieter Nuhr, German comedian openBC/Xing: http://www.cybercraft.de T3 cookbook: http://www.typo3experts.com _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3] H/TMENU Links to short by ... | Mike Morris | typo3-english@lists.netfielders.de | 2 | 09.01.2007 12:59 |
| [TYPO3] insert tmenu into other tmenu | Patrick Pirrotte | typo3-english@lists.netfielders.de | 2 | 21.12.2006 10:50 |
| [TYPO3] tmenu on submenu items | dave typo | typo3-english@lists.netfielders.de | 9 | 18.12.2006 14:42 |
| [TYPO3] HMENU/TMENU: 2 levels in 1 menu? | Pieter | typo3-english@lists.netfielders.de | 14 | 04.12.2006 10:45 |
| [TYPO3] TMENU and beforeROImg: does not roll over | Claus Faber | typo3-english@lists.netfielders.de | 1 | 02.12.2006 15:55 |