[TYPO3-english] how to change behavior of tt_content for just a part of a page?

Peter Russ peter.russ at 4many.net
Tue Dec 21 09:37:28 CET 2010


--- Original Nachricht ---
Absender:   Geronimo Ma. Hernandez
Datum:       21.12.2010 09:06:
> Hello,
> 
> with my current design the class csc-default plays an important role. So I 
> need it on std-content parts, but I don't want it in the parts of the right 
> column.
> 
> I found out, that I can prevent the wrapping with csc-default divs by using 
> tt_content.stdWrap.innerWrap.cObject.default.15 >
> 
> That works in case I want to disable the wrapping on the whole page.
> But I don't know, how to do it on just a small part.
> 
> I tried this TS:
> ------ snip ---------
> page.10.subparts.ADDONS.10 = COA
> tt_content.stdWrap.innerWrap.cObject.default.15 >
> page.10.subparts.ADDONS.10 {
>   10 = CONTENT
>   10 {
>     table = tt_content
>     select.orderBy = sorting
>     # take content of right column from about page
>     select.where = colPos = 2
>     select.languageField = sys_language_uid
>     select.pidInList = 62
>     wrap = <div id="about">|</div><!-- end of about div -->
>   }
>   
>   20 = COA
>   ...
> ------ snap ---------
> 
> Even as this TS code will be included after the TS-part for the main content, 
> the main-content will be rendered without that part .15 too.
> 
> I tried to move the tt_content.stdWrap into the body of .10 but I did not get 
> it.
> 
> So how can I change tt_content just for that ADDONS.10 section?
> 

You should use renderObj to define the rendering to your need. Check the 
CONTENT object for more information on that

Peter


-- 
docendo discimus

_____________________________
uon GbR
http://www.uon.li
http://www.xing.com/profile/Peter_Russ


More information about the TYPO3-english mailing list