Skip to content

Instantly share code, notes, and snippets.

protected function executeProviderMethod($methodName, $uid, $nodeType, $backendLayout, $columnPosition)
{
$detectedProviders = $this->providerResolver->resolveProviders($uid, $nodeType, $backendLayout, $columnPosition);
$currentDefinitions = [];
foreach ($detectedProviders as $provider) {
$currentDefinitions = array_merge($currentDefinitions, call_user_func_array([$provider, $methodName], array_values($currentDefinitions)));
}
<?php
namespace TYPO3\CMS\NewContentElementWizard\Domain\Model;
class ContentElementDefinitionGroup
{
/**
* @var String
*/
protected $header;
@jmverges
jmverges / gist:e58965a0a23a81c1e9e6
Created January 13, 2016 21:42
Verifying that +jmverges is my blockchain ID. https://onename.com/jmverges
Verifying that +jmverges is my blockchain ID. https://onename.com/jmverges
@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;
@jmverges
jmverges / gist:d3521f3a24acd19b9909
Created July 24, 2015 17:58
amend and force a PR
git commit -a --amend && git push -f
composer install && ./vendor/bin/make && git checkout -b mycoolfeature development
@jmverges
jmverges / gist:ef006024e8b5c506b882
Last active October 10, 2015 11:03
sync github branch
git remote add upstream https://github.com/FluidTYPO3/flux.git && git remote update && git reset --hard upstream/development && git push origin +development && git checkout -b fixForFluxColumn development
@jmverges
jmverges / gist:ee575de1f8db246fe107
Created March 14, 2015 13:08
allowedContentTypes
<div xmlns="http://www.w3.org/1999/xhtml" lang="en"
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers"
xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
xmlns:flux="http://typo3.org/ns/FluidTYPO3/Flux/ViewHelpers">
<f:layout name="Content" />
<f:section name="Configuration">
<flux:form id="container">
<flux:form.option name="group" value="Layout" />
{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" />
@jmverges
jmverges / gist:927068b2dd5e2237ecd6
Created December 2, 2014 14:54
Get all typoscript in service or hook
$GLOBALS['TT'] = new \TYPO3\CMS\Core\TimeTracker\NullTimeTracker();
$GLOBALS['TSFE'] = new \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController($TYPO3_CONF_VARS, $pid,
0, true);
$GLOBALS['TSFE']->connectToDB();
$GLOBALS['TSFE']->initFEuser();
$GLOBALS['TSFE']->determineId();
$GLOBALS['TSFE']->getCompressedTCarray();
$GLOBALS['TSFE']->initTemplate();
$GLOBALS['TSFE']->getConfigArray();
$settings = $GLOBALS['TSFE']->tmpl->setup;