[Typo3] FAQ layout

Bart Aninowski bart at sonik.pl
Fri Jan 28 12:17:52 CET 2005


> I want to put question and answer inside these divs
> <DIV class=FAQquestion> question here<DIV class=FAQanswer>answer 
> here.</DIV></DIV>
> but only for that subpage.
> Please notice that <DIV class=FAQanswer> is inside <DIV class=FAQquestion>
> Can you tell me how can I do this?

For someone with similar problem. I don't know if there is simpler solutions 
but ..
I use template selector so I added new content template id="colFaq"
then I added this TS

#### LAYOUT FAQ
temp.content1 = CONTENT
temp.content1 {
    table = tt_content
    select {
        # from page 1 column "border"
        pidInList = 12
        andWhere=colPos=0
    }
    renderObj = COA
     renderObj.wrap = <DIV class=FAQquestion>|</div>
    renderObj {
 10 = TEXT
       10 {
 field = header
 }
 20 = TEXT
 20{
 field = bodytext
 wrap = <DIV class=FAQanswer> | </DIV>
 }
    }
}

and copied this object to subparts.colFaq






More information about the TYPO3-english mailing list