[TYPO3-english] Add TS to one Content element only
Urs Bräm
info at ursbraem.ch
Sun May 20 23:01:05 CEST 2012
Hi Kay
yes, but the whole layout or header_layout dependency ends up in quite
complicated (and for me, error-prone) TS, as you have to repeat your
conditions all the time:
tt_content.textpic.stdWrap.outerWrap.cObject=CASE
tt_content.textpic.stdWrap.outerWrap.cObject{
key.field = header_layout
default=TEXT
default.value=|
1=TEXT
1.value=<aside class="kasten">|</aside>
2=TEXT
2.value=<div class="narrow">|</div>
}
imgWidth=CASE
imgWidth{
key.field = header_layout
default=TEXT
default.value=520
1=TEXT
1.value=260
2=TEXT
2.value=160
}
tt_content.image.20.maxWInText.cObject < imgWidth
tt_content.image.20.maxW.cObject < imgWidth
So I thought it would be much nicer if you just had some TS snippets like:
tt_content.textpic.stdWrap.outerWrap.cObject.value=<aside
class="kasten">|</aside>
tt_content.image.20.maxWInText.value=260
tt_content.image.20.maxW.value = 260
and:
tt_content.textpic.stdWrap.outerWrap.cObject.value=<div
class="narrow">|</div>
tt_content.image.20.maxWInText.value=160
tt_content.image.20.maxW.value = 160
which could be then assigned to the desired CEs in the Backend.
Cheers
Urs
Am 20.05.12 21:30, schrieb Kay Strobach:
> Hi Urs,
>
> yes should be possible by using the layout field of each ce.
>
> You can adjust the styling based on the selected layout ....
>
>
> Regards
> Kay
>
> Am 19.05.2012 09:15, schrieb Urs Bräm:
>> Hi
>>
>> I have a basic question, maybe I just don't see it:
>>
>> Is there a way to attach Typoscript to *one single content element* (in
>> classic mode) for editors in the Backend?
>>
>> Like the extension ts_select
>> http://typo3.org/extensions/repository/view/ts_select - but instead of
>> inserting some TS code *as* a CE, applying that TS *to* the present CE.
>>
>> With this you could override css_styled_content wrappings, say to
>> transform an image element into a slideshow. And it would be much more
>> powerful than using the header_layout or the frame selectors.
>>
>> I wonder if this is possible at all. Or if it's so simple nobody
>> mentions it.
>>
>> Best regards
>> Urs
>>
>> PS: of course I want this because I want FCEs without Templavoila, and I
>> will try http://www.slideshare.net/TobiasLiegl/fce-ohne-templavoila
>>
>>
>
>
--
Urs Bräm
macht Websites
---
Certified Typo3 Integrator
CH-3011 Bern
www.ursbraem.ch
More information about the TYPO3-english
mailing list