[TYPO3] Conditions in menu

Jérôme Picard j.picard at vivacances.fr
Wed Jan 24 08:18:47 CET 2007


Hello,

To do It, I use an extension "popup_manager". It's easy and efficient.

Regards,
Jerome.


-----Message d'origine-----
De : typo3-english-bounces at lists.netfielders.de [mailto:typo3-english-bounces at lists.netfielders.de] De la part de Gert Kaae Hansen
Envoyé : mercredi 24 janvier 2007 06:14
À : typo3-english at lists.netfielders.de
Objet : [TYPO3] Conditions in menu

Hi

I have a page where all internal links opens in a new window except two 
that need to open in the default window.
I have looked at option split and this is a solution, but it is not 
flexible, if my customer want to add a new page.
I have therefore looked at conditions but cannot get it to work. Here is 
the code that i have at the moment.

# Menu 1 cObject
[globalVar = TSFE:id = 252]
lib.menu = HMENU
   # First level menu-object, textual
lib.menu.1 = TMENU
lib.menu.1 {
  expAll = 1
  #NO.ATagTitle.field = title
  #NO.ATagParams = 
onclick="window.open(this.href,'Holtum','width=420,height=800, 
menubar=no,scrollbars=1,resizable=no,location=no,directories=no,toolbar=no'); 
return false;" 
onkeypress="window.open(this.href,'Holtum','width=400,height=800, 
menubar=no,scrollbars=1,resizable=no,location=no,directories=no,toolbar=no'); 
return false;"
  wrap = <ul id="navmenu"> | </ul>
  NO.wrapItemAndSub = <li> | </li>
  ACT = 1
  ACT.wrapItemAndSub = <li class=sel1> | </li>
  ACT.ATagTitle.field = title
  }
[global]
lib.menu = HMENU
   # First level menu-object, textual
lib.menu.1 = TMENU
lib.menu.1 {
  expAll = 1
  NO.ATagTitle.field = title
  NO.ATagParams = 
onclick="window.open(this.href,'Holtum','width=420,height=800, 
menubar=no,scrollbars=1,resizable=no,location=no,directories=no,toolbar=no'); 
return false;" 
onkeypress="window.open(this.href,'Holtum','width=400,height=800, 
menubar=no,scrollbars=1,resizable=no,location=no,directories=no,toolbar=no'); 
return false;"
  wrap = <ul id="navmenu"> | </ul>
  NO.wrapItemAndSub = <li> | </li>
  ACT = 1
  ACT.wrapItemAndSub = <li class=sel1> | </li>
  ACT.ATagTitle.field = title
  }
[end]

The ID of the page that should not pop up in a new window is 252, but 
with this code the lines after [global] is the code that shown when i 
select page 252.

Hope that one of you can help :-)

/Gert Kaae Hansen
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english



More information about the TYPO3-english mailing list