[Typo3] Insert title into wrap

Franz Koch typo3 at fx-graefix.de
Wed Sep 21 14:37:08 CEST 2005


Hi,
> temp.third_menu.wrap = <div id="item-left"> <h3>{title}</h3> <ul> | </ul> </div>
> Where I want {title} to be the title of the page. Is it possible?

Well, why don't you make an COA out of the menu? The first element 
implements the Title by using a TEXT-Element. The second one is then the 
menu and the div-wrap can be assigend to the whole COA - and thats it.

---
temp.third_menu = COA
temp.third_menu {
   10 = TEXT
   10 {
     field = title
     required = 1
     wrap = <h3>|</h3>
   }
   20 = HMENU
   20 {
    # there your menu
   }
   wrap = <div id="item-left">|</div>
}
---

Typo3 - as easy as it can be...

-- 
Gruß, Franz Koch



More information about the TYPO3-english mailing list