Skip to content

Instantly share code, notes, and snippets.

@tv-schulz
Created October 29, 2014 16:22
Show Gist options
  • Save tv-schulz/75f30b42c1090fcf1e10 to your computer and use it in GitHub Desktop.
Save tv-schulz/75f30b42c1090fcf1e10 to your computer and use it in GitHub Desktop.
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'My provider extension');
\FluidTYPO3\Flux\Core::registerProviderExtensionKey('myprovider', 'Page');
\FluidTYPO3\Flux\Core::registerProviderExtensionKey('myprovider', 'Content');
<f:layout name="Content" />
<f:render section="Main" />
{namespace flux=FluidTYPO3\Flux\ViewHelpers}
<f:layout name="Content" />
<f:section name="Configuration">
<flux:form id="fluidfluxcontent" label="Fluid/FluxContent" options="{icon: 'Icons/Content/Example.gif'}">
<!-- Insert fields, sheets, grid, form section objects etc. here, in this flux:flexform tag -->
</flux:form>
</f:section>
<f:section name="Preview">
<!-- uncomment this to use a grid for nested content elements -->
<!-- <flux:widget.grid /> -->
</f:section>
<f:section name="Main">
<h3>I am a content element!</h3>
<p>
My template file is EXT:myprovider/Resources/Private/Content/Example.html.
</p>
</f:section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment