Skip to content

Instantly share code, notes, and snippets.

@jmverges
jmverges / gist:76ca3e3b23224c536669
Created November 18, 2014 19:12
GitHub git tips
git remote add upstream https://github.com/FluidTYPO3/vhs.git
git pull --rebase upstream development
then commit
git push --force origin development
@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;
{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: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" />
@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
composer install && ./vendor/bin/make && git checkout -b mycoolfeature development
@jmverges
jmverges / gist:d3521f3a24acd19b9909
Created July 24, 2015 17:58
amend and force a PR
git commit -a --amend && git push -f
@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: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
<?php
namespace TYPO3\CMS\NewContentElementWizard\Domain\Model;
class ContentElementDefinitionGroup
{
/**
* @var String
*/
protected $header;