[Typo3] Insert title into wrap

Christopher bedlamhotel at gmail.com
Wed Sep 21 18:15:27 CEST 2005


Hi,

On 21/09/05, Dmitrii Dimandt <dmitriid at gmail.com> wrote:
> On 9/21/05, Peter Klein <peter at umloud.dk> wrote:
> > Hi Dmitrii, instead of "wrap" you should use "dataWrap" which allows you to
> > add fields directly on the wrap.
> >
> > temp.third_menu.dataWrap = <div id="item-left"> <h3>{field:title}</h3> <ul>
> > | </ul> </div>
>
>
> Thank you, I have already found it in the docs, used it and then
> decided not to use it :))
>
> Actually, I am now looking for a solution to the second question:
>
> [quote]
> I want to display a third-level menu in a separate
> div on the page. However, I don't want that div to appear if there is
> no third-level menu. How can I do that?
> [/quote]

Use the .wrap property of TMENU; from the TMENU page of the TSref [1]:
"Wraps only if there were items in the menu!"

-Christopher

[1] http://typo3.org/documentation/document-library/doc_core_tsref/TMENU/



More information about the TYPO3-english mailing list