[TYPO3] Selected content wrap
Pasquale Basile
pasquale.basile at gmail.com
Fri Oct 26 12:16:42 CEST 2007
Thanks Tyler,
I made several search but found no useful references . After some
investigation, I found the following solutions to my questions:
1) wrapping a selected content can be achieved using the following TS code:
.renderObj.stdWrap.wrap = <div class"contentwrap"> | </div>
2) Modifying the header only of the selected content if more complex.
I resolved with code like this
lib.MyHeader < lib.stdheader
lib.MyHeader.10.1.fontTag = <div class="header">|</div>
and, after, modifying each occurence of desided content (in the sample
I modified for text, all other plugins, image, textpic).
10.renderObj.text.10 = < lib.MyHeader
10.renderObj.list.10 = < lib.MyHeader
10.renderObj.image.10 = < lib.MyHeader
10.renderObj.textpic.10.10 = < lib.MyHeader
10.renderObj.textpic.20.text.10 = < lib.MyHeader
With this solution the header of the non-selected content remains unchanged.
with "selected content" I mean the records selected from tt_content
using some conditions, like
styles.content.getBorder
I hope to write a more detailed article in the near future on this argument.
Pasquale
http://www.sublogic.org
>Hi and welcome,
>
>Do a search of this list for custom content column rendering - there are
>tons of mailings about how to do what you want
>hth
Pasquale Basile wrote:
> Hi,
> this is the first post on this ML.
> My goal is to wrap a selected content (i.e. each single border
> content) in a similar way:
> <div class="bordercontent"><<content>></div>
> and, moreover, to render the header in a more complex way:
> <div class="borderheader">...otherstuff <<header>> </div>
>
> For the last action, after some research, I found some solution acting
> on lib.stdheader; but modifying lib.stdheader I think that ALL the
> content is involved, isn't ?
> I, instead, with to limit this action only to the content resulting from
> styles.content.getBorder
> TS code.
> Any suggestion?
> Thanks,
> Pasquale Basile
> http://www.sublogic.org
More information about the TYPO3-english
mailing list