[TYPO3-english] FLUX: Creating a fixed FCE

Jost Baron jost.baron at gmx.de
Mon Mar 3 15:27:23 CET 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Christian,

your last section of code looks good. This works for me:

In the flexform definition:

<flux:grid>
    <flux:grid.row>
        <flux:grid.column>
            <flux:form.content
                  name="col1"
                  label="{f:translate(id: 'section.column1.label')}"
            />
        </flux:grid.column>
    </flux:grid.row>
</flux:grid>

And in the "Main" section:

<flux:content.render area="col1"/>

This is done with the development branch of flux though, but I think
it also worked with the current TER version.

Regards,
Jost

On 03/03/2014 02:31 PM, Christian Tauscher wrote:
> Hello dear FLUX users:
> 
> Width this code i can define content areas for a multicolumn FCE:
> 
> <flux:flexform.section name="columns"> <flux:flexform.object
> name="column" label="column"> <flux:flexform.field.input
> name="demo" label="field" /> </flux:flexform.object> 
> </flux:flexform.section>
> 
> <flux:flexform.grid> <flux:flexform.grid.row> <f:for
> each="{columns}" as="sectionObject" iteration="iteration"> 
> <flux:flexform.grid.column> <flux:flexform.content
> name="column{iteration.cycle}" label="Column {iteration.cycle}" /> 
> </flux:flexform.grid.column> </f:for> </flux:flexform.grid.row> 
> </flux:flexform.grid> ...
> 
> 
> 
> This is flexible. I can Add new "Content Areas" through the
> section. But this is not what I want.
> 
> How do I define a simple content Area for a simple two columned
> FCE. I dont like the editor to have too much options wich don't wor
> anyway.
> 
> I Want to define a very fixed two-column and a three-column FCE.
> 
> I am missing something like:
> 
> <flux:flexform.field.contentArea name="col1" label="Col1" /> 
> <flux:flexform.field.contentArea name="col2" label="Col2" />
> 
> <flux:flexform.grid> <flux:flexform.grid.row> 
> <flux:flexform.grid.column> <flux:flexform.content name="col1" /> 
> </flux:flexform.rgid.column> <flux:flexform.grid.column> 
> <flux:flexform.content name="col2" /> </flux:flexform.rgid.column> 
> </flux:flexform.grid> </flux:flexform.grid.row>
> 
> Thank you for your hint to the right direction.
> 
> 
> 
> 
> Christian.
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJTFJFHAAoJEG6HPMAgWtVzKWoP/0PDxSmEsKmOCSaOB+1gzhVf
d279/pIEoFr1ta72pLZcSp52tPGemVTC3EzgdNHumuWT+2EeZWMJuKfyxmWWmmYY
UvSqIRjrkYxz6/iiwXTxvFHboQNn2/PuTzKOdb7Y20o3WtPnydSFQm224rvW+vxB
MnXzP7FZ8jR2FL7IA+AZXnppXuiNbowC8YYQaPk+qXDp5zDwnxg+BuYnzXcB22at
BGLKP/xj5NMrlinikz8X0jDYvi9IdenUXVwlSTfpfEg+BXr/H9e2oaMuRiN7ppVm
1+EtErs2roRH1r/wXK7Qaaka42SE4W+NtKcu3176dTBB/FG86ljIlJe3a1DNWs0J
1aA8Q2fUxiNpZQl1wHRv9dB0vScKSjOhXLcMtvLcsH1ZPVowclpKqeTP+UjMi+pX
ttYNhJDrKsMNCPhY5IjZN8n8MltlSGUL5d3ZkgQkEH78WklOb3Bah8F1XF7gLPa5
A/FVkU7yyYKb29d8hze7Mf3Y8Rw5xBLaEX1GvO9UmJb08K29xI36Vp9IL8c1FULy
MSRSnQolG0t63y9s4dRYYNhU+yuw9PRJ/QXWGrkyfHBypM+If7VRKKXHwq857CXV
2QN+oSjVdFhJqRoOGkA1XTjhhXLQo2ZCmlodLtJVlVRKa0XPeJ2RSSyP6Tez8XHN
Pq2eZBQ0/ArLIeB1BkxN
=Qym8
-----END PGP SIGNATURE-----


More information about the TYPO3-english mailing list