[TYPO3-templavoila] Solution - FCE with select option for variable widths according to css grid system
Thomas Rehhoff
thomasr at REMOVETHISlinkfactory.dk
Sat May 16 15:46:20 CEST 2009
SOLUTION:
To answer my own question and help others - in order to achieve this you do
the following:
say you have a HTML structure for an FCE like this
<div class="root">
<div class"">
dummy content
</div>
</div>
now map up the attribut "class" and set editing type to "selection" and save
the DS/TO.
Afterwards edit the xml structure of the DS and edit the selection, TV will
automatically create 3 select options for you. Just change the number of
select options to the number you need and write in the class names you
subsequently want to select in the FCE.
Then, when insterting the FCE on a page the select option will hold the
class names et voila there you go.....
Thomas Rehhoff
"Thomas Rehhoff" <thomasr at REMOVETHISlinkfactory.dk> skrev i en meddelelse
news:mailman.1.1238962574.6757.typo3-project-templavoila at lists.netfielders.de...
> Hi, I've been seearching for a long time for a solution for a FCE I want
> to build.
>
> Imagine a site build on a grid system with 12 columns
> Now I want to build and FCE that lets the user choose from a select
> menu, which grid-widths the FCE should use. The grid widths are defined
> in the css classes.
>
> How do I program a select menu, that let's the user choose the final
> width for the FCE inserted on the page.
>
> Technically we're talking about a solution to influence the value of the
> class of the div.
>
> My guess is, I map the whole thing normally in TV and then I have to
> edit the XML in the DataStructure and write in some Typoscript that
> gives me the select menu - but what to write? Or is this the right
> approach?
>
> Any help appreciated
>
> All the best
> Thomas Rehhoff
>
> --
>
>
>
More information about the TYPO3-project-templavoila
mailing list