[TYPO3-english] CASE object via stdWrap for styles.content.imgtext.maxW possible?

Roland most.wanted at gmx.at
Mon Jul 2 12:41:15 CEST 2012


this works:

--- quote ---

tt_content.image.20.maxW.override >

tt_content.image.20.maxW.cObject = CASE
tt_content.image.20.maxW.cObject {
   key.field = imagecols
   1 = TEXT
   1.value = 413
   2 = TEXT
   2.value = 370
}

--- /quote ---

...i mixed up typoscirpt constans and typoscript setup.

kind regards.

roland






Am 02.07.12 12:23, schrieb Roland:
> hi everybody,
>
> should something like this work?
>
> --- quote ---
>
> styles.content.imgtext.maxW.stdWrap.cObject = CASE
> styles.content.imgtext.maxW.stdWrap.cObject {
>    key.field = imagecols
>    1 = TEXT
>    1.value = 413
>    2 = TEXT
>    2.value = 370
>    default = TEXT
>    default.value = 370
> }
>
> --- /quote ---
>
> i would like to set the maxW depending on the number of cols set in the
> image content element.
>
> in class.tx_cssstyledcontent_pi1.php you can find this:
>
> --- quote ---
>
> $maxW = intval($this->cObj->stdWrap($conf['maxW'], $conf['maxW.']));
>
> --- /quote ----
>
> i guess this means, that stdWrap should be possible, shouldn't it?
>
> unfortunatelly my typoscript snippet does not set any maxW at all.
>
> maybe the key.fild settings can not work in this context?
>
> kind regards.
>
> roland




More information about the TYPO3-english mailing list