Skip to content

Instantly share code, notes, and snippets.

@jmverges
jmverges / PagePreviewRenderer.php
Created November 26, 2015 09:03 — forked from Torsten85/PagePreviewRenderer.php
Showing the preview section of fluidpages.
<?php
namespace My\Extension\Hooks;
use FluidTYPO3\Fluidpages\Provider\PageProvider;
use TYPO3\CMS\Backend\Controller\PageLayoutController;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Object\ObjectManager;
use FluidTYPO3\Flux\Service\WorkspacesAwareRecordService;
use FluidTYPO3\Flux\View\PreviewView;
{namespace flux=FluidTYPO3\Flux\ViewHelpers}
{namespace v=Tx_Vhs_ViewHelpers}
<f:layout name="Content" />
<f:section name="Configuration">
<flux:form id="image" wizardTab="Content" options="{Fluidcontent: '{sorting: 40}'}">
<flux:field.inline.fal name="image" minItems="1" />
<flux:field.checkbox name="zoom" />
<flux:field.checkbox name="showBorder" />