[TYPO3-templavoila] flexform - change output arraydata char from comma to whitespace

Tim Kleigrewe x27 at e27.com
Thu Jun 22 13:29:12 CEST 2006


hi

thanks for your hint:

<TypoScript>
<![CDATA[
	10= TEXT
	10.current=1
	10.split {
                token = ,
		cObjNum = 1
		1.current = 1
		1.noTrimWrap =| ||
        }
        10.noTrimWrap=|cbox||
]]>
</TypoScript>

works fine and all css classes are assigned correctly.

this FCE works here like a subtemplate and std content elements are
placed inside. the classes just define the height, width and bgcolor of
the placehoder div (grid). i think to use a flexform field to assign css
classes here is not a problem (i love it :-)), otherwise i had to build
12+ templates just to give the editor the possibility to manully select
the visual appearance of this "content area". the focus here is design
and the the visual representation is done by css. just a single <div>...


tim


Dmitry Dulepov schrieb:
> Hi!
> 
> Tim Kleigrewe wrote:
>> I found in "core api doc" how to setup the multiple selectbox with
>> flexforms and mapped it and i get (nearly right) :
>>
>> <div class="bg1,h1row,w2col">....</div>
>>
>> but this is no valid css.
>>
>> is it possible to change the ","  to " " in the output?
> 
> I think it should be possible to postprocess this value with TS. What
> you get is direct value from database. You will need to split it and
> join back using spaces. This TS should go to your DS. But beware: you
> mix visual representation with data. This is not good approach. See if
> you can alayze your data (using TS, for example) and generate
> appropriate class names.
> 
> Dmitry.



More information about the TYPO3-project-templavoila mailing list