TYPO3 Fluid Content Elements: Allow single content element only

raw

README.rst

Implementation: https://github.com/FluidTYPO3/fluidcontent/commit/5d63b574fa84564896c4dd3b198523508d21f9d4

Both allowedContentTypes and Fluidcontent: allowedContentTypes need to be set.

The value of Fluidcontent: allowedContentTypes can be gotten from database table tt_content, column tx_fed_fcefile.

raw

phork0.xml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<div xmlns="http://www.w3.org/1999/xhtml" lang="en"
     xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
     xmlns:flux="http://typo3.org/ns/FluidTYPO3/Flux/ViewHelpers"
     xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers">
 
    <f:layout name="Container for Teammitglieder" />
 
    <f:section name="Configuration">
        <flux:form id="container-teammembers" options="{group: 'FCE Container'}">
            <flux:grid>
                <flux:grid.row>
                    <flux:grid.column name="left"
                                      variables="{allowedContentTypes: 'fluidcontent_content', Fluidcontent: {allowedContentTypes: 'Vendor.VendorFluidTest:Teammember.html'}}"
                                      />
                </flux:grid.row>
            </flux:grid>
        </flux:form>
    </f:section>
 
    <f:section name="Preview">
      <flux:widget.grid />
    </f:section>
 
    <f:section name="Main">
        <h3>Teammitglieder</h3>
        <flux:content.render area="left" />
    </f:section>
</div>
 
Christian Weiske Christian Weiske
owner

History