Skip to content

Instantly share code, notes, and snippets.

View j6s's full-sized avatar
✉️
hello@j6s.dev

Johannes Hertenstein j6s

✉️
hello@j6s.dev
View GitHub Profile
{namespace flux=FluidTYPO3\Flux\ViewHelpers}
{namespace nim=nim\nimelements\ViewHelpers}
<f:layout name="Content" />
<f:section name="Configuration">
<flux:form id="button" label="Button" icon="../typo3conf/ext/nimelements/Resources/Public/icons/button.png">
<!-- Insert fields, sheets, grid, form section objects etc. here, in this flux:flexform tag -->
<flux:field.input name="url">
<flux:wizard.link label="URL"/>
@j6s
j6s / fce.html
Last active August 29, 2015 14:07
{namespace v=FluidTYPO3\Vhs\ViewHelpers}
{namespace flux=FluidTYPO3\Flux\ViewHelpers}
<f:layout name="Content" />
<f:section name="Configuration">
<flux:form id="Mehrspaltig" label="Mehrspaltig" icon="typo3conf/ext/nimelements/Resources/Public/icons/frame.png">
{f:if(condition: settings.gridColumns, then: settings.gridColumns, else: 12) -> v:variable.set(name: 'numberOfColumns')}
<flux:field.checkbox name="settings.fluid" />
<flux:form.section name="columns">
<flux:form.object name="column">
@j6s
j6s / InSetViewHelper.php
Last active August 29, 2015 14:08
InSetViewHelper.php
<?php
namespace NIM\Nimseminar\ViewHelpers\Fe;
use NIM\Nimseminar\NIMGeneral;
use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
/**
* Created by thephpjo.
* Date: 28.10.14
* Time: 16:56
*/
@j6s
j6s / LinkViewHelper.php
Created November 4, 2014 13:18
LinkViewHelper.php
<?php
namespace NIM\Nimseminar\ViewHelpers\BE;
use NIM\Nimseminar\ViewHelpers\Misc\RequestViewHelper;
use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
use TYPO3\CMS\Fluid\Core\ViewHelper\TagBuilder;
/***************************************************************
* Copyright notice
*
* (c) 2014 Johannes Hertenstein
<?php
namespace Vendor\Ext\ViewHelpers\Form;
use Vendor\Ext\ViewHelpers\Misc\RequestViewHelper;
use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
use TYPO3\CMS\Fluid\Core\ViewHelper\TagBuilder;
/***************************************************************
* Copyright notice
*
* (c) 2014 Johannes Hertenstein
@j6s
j6s / typo3.rb
Last active August 29, 2015 14:08
set :typo3_maindir, '/html/typo3/'
set :php_cli, '/usr/local/bin/php_cli'
task :typo3_flushcache do
queue %[echo "------> TYPO3: flushing cache"];
queue %[cd #{typo3_maindir} && rm -R typo3temp/*];
queue %[
cd #{typo3_maindir} && #{php_cli} -r '
$GLOBALS["TYPO3_CONF_VARS"] = require(dirname(__FILE__)."/typo3conf/LocalConfiguration.php");
@j6s
j6s / Model.php
Last active August 29, 2015 14:09
<?php
/**
* file
*
* @var \TYPO3\CMS\Extbase\Domain\Model\FileReference
*/
protected $file;
<?php
/**
* @param array $filter
* The inner arrays will be treated as AND and the outer as OR
* [
* [
* {
* type: string (min|max|equals|contains),
* field: string,
* val: string | float,
wget nutella-addict.com/mondial.zip
unzip mondial.zip
cd mondial
./install.sh
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBMpVM8I5+wKm6oNuguTW9a7x80C2v1qf56a86u+PK0Zhq+McQrO0vgIksUqHxQdgEQYAClAyyUHHe8YogMgtIku3WKFcuGWg2U6rMMz63y6zrYF210RDt22tpOpDjkNd9vhH1b1LvVe2V3vUlWOlnPgExd5SW6xz9/YEbpODcL6b8KxJLlb+H0mG0WN7QgsTiKykLQEz1bJq16nvtL/r3EDyi9J39ZusRd8BUrXl4YZdkBCpKsGvbnunmktvh4lUNm31wsTKWxxJvWD/hhZbF1OSs0uxcoWtsVNMC/psU+to7oZPavLBmoOWJBiUNV0oZRe665yjpciFLNRnJIDhF Johannes Hertenstein