[TYPO3-english] FED/Flux page template problems
Domi
djgarms at gmail.com
Thu Aug 23 04:50:16 CEST 2012
Hi Thomas,
simply follow this steps:
1. install gridelements
2. install flux
3. install fed and check the checkbox inside of the extension manager
configuration options: "Fluid Content Elements"
4. create a empty extension and adjust the setup.txt template as following:
plugin.tx_fed.fce.your_extensionname {
templateRootPath = EXT:your_extensionname/Resources/Private/Elements/
layoutRootPath = EXT:your_extensionname/Resources/Private/Layouts/
partialRootPath = EXT:your_extensionname/Resources/Private/Partials/
}
5. Include the setup.txt of your extension
6. Create a basic Test.html file inside of your extensionfolder related
to "templateRootPath = EXT:your_extensionname/Resources/Private/Elements/"
7. inside of EXT:your_extensionname/Resources/Private/Elements/Test.html:
{namespace flux=Tx_Flux_ViewHelpers}
<f:section name="Configuration">
<flux:flexform id="test" label="Test Element" description="More
details in here">
<flux:flexform.field.checkbox name="settings.test"
label="Some Test Checkbox"/>
</flux:flexform>
</f:section>
<f:layout name="FCE"/>
<f:section name="Preview">
<strong>HELLO {settings.test}<br />
</f:section>
<f:section name="main">
Hello World, here the checkbox value: {settings.test}
</f:section>
8. inside of EXT:your_extensionname/Resources/Private/Layouts/FCE.html
<f:render section="main" />
9. Check your typo3 backend if you can create a element of "Test Element"
Hope this helps.
Regards,
Dominic
More information about the TYPO3-english
mailing list