[TYPO3-english] Content element wrap
Jesper Mathiasen
jekorma at gmail.com
Sun Jul 19 03:27:29 CEST 2009
Hello again Martin.
I managed to figure it out on my own, so no worries.
Thanks for the help, and happy holidays :-)
J
Martin Bernt Rud wrote:
> Hej Jesper,
>
> I am on holiday and can`t answer you right now. Maybe someone else can
> follow up for me? Anyway; I think you need to give an example of your needs
> or en example of what does not work as intended.
>
> Regards,
> Martin
>
>
> 2009/7/14, Jesper Mathiasen <jekorma at gmail.com>:
>> Hej Martin
>>
>> Thank you for your kind assistance.
>> It worked great, except for one thing. I didn't realize that
>> all HTML elements would also be wrapped, which cripples
>> parts of my site which require specific html tags. How do I exempt
>> html content elements while using the code you already provided?
>>
>>
>>
>> Martin Bernt Rud wrote:
>>> Hej Jesper,
>>>
>>> Try this:
>>>
>>> tt_content {
>>> stdWrap.dataWrap (
>>> <div id="ce_{field:uid}" class="contentElement CType_{field:CType}
>>> section_frame_{field:section_frame} header_layout_{field:header_layout}">
>>> |
>>> </div>
>>> )
>>> }
>>>
>>>
>>> It gives specific classes on every CType (text, image, text/image and so
>> on)
>>> and then you can hit the headers and other sub elements with CSS like
>>>
>>> div.CType_text h1 {
>>> ...
>>> }
>>>
>>> The classes section_frame_{field:section_frame}
>>> header_layout_{field:header_layout} gives you further ways of doing
>> things.
>>> In generel you can wrap with properties from all field in the table
>>> tt_content.
>>> Regards,
>>> Martin
>>> 2009/7/14 Jesper Mathiasen <jekorma at gmail.com>
>>>
>>>> Hello.
>>>>
>>>> First of all I'm very much a Typo3 noob. Here's my question.
>>>>
>>>> I need several kinds of content elements to be wrapped in a specific
>>>> class for css styling. I.e. all text, image, text w. image elements,
>>>> including headers belonging to them. I know next to nothing about TS,
>>>> and as far as I can gather from other forums this might be a bit tricky
>>>> to achieve.
>>>>
>>>> So what do you say, is it possible?
>>>>
>>>> regards,
>>>>
>>>> Jesper.
>>>> _______________________________________________
>>>> TYPO3-english mailing list
>>>> TYPO3-english at lists.netfielders.de
>>>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>>>>
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>>
More information about the TYPO3-english
mailing list