[TYPO3] Conditions in menu

Gert Kaae Hansen gertkh at FJERNgmail.com
Wed Jan 24 06:14:00 CET 2007


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


More information about the TYPO3-english mailing list