Skip to content

Instantly share code, notes, and snippets.

View kitsunet's full-sized avatar
:octocat:

Christian Müller kitsunet

:octocat:
View GitHub Profile
@kitsunet
kitsunet / _mixins.scss
Created May 11, 2012 06:58 — forked from garyharan/_mixins.scss
Useful scss mixins (rounded corners, gradients, text-field, button)
@mixin box-shadow($top, $left, $blur, $color, $inset: false) {
@if $inset {
-webkit-box-shadow:inset $top $left $blur $color;
-moz-box-shadow:inset $top $left $blur $color;
box-shadow:inset $top $left $blur $color;
} @else {
-webkit-box-shadow: $top $left $blur $color;
-moz-box-shadow: $top $left $blur $color;
box-shadow: $top $left $blur $color;
}
Information for route 1:
Name: Solutions :: Company.Solutions Show Solution
Pattern: {node}/service/{solution}.html
Defaults:
- @package => TYPO3.TYPO3
- @controller => Frontend\Node
- @format => html
- @action => show
- --typo3_typo3_typoscript_plugin => Array
Append: FALSE
@kitsunet
kitsunet / DefaultTemplate.html
Created August 1, 2012 10:52
Phoenix TwoColumn
<div class="two-column columns-50-50">
<div class="column column-1">
</div>
<div class="column column-2">
</div>
</div>
@kitsunet
kitsunet / Controller.php
Created August 1, 2012 14:51
Using different view depending on format
<?
class MyController extends ActionController {
protected $viewFormatToObjectNameMap = array(
'pdf' => '\TYPO3\TcPdf\View\HtmlPdfView'
);
/**
@kitsunet
kitsunet / Caches.yaml
Created September 27, 2012 08:25
Disable Routing Cache
FLOW3_Mvc_Routing_Resolve:
backend: TYPO3\FLOW3\Cache\Backend\NullBackend
FLOW3_Mvc_Routing_FindMatchResults:
backend: TYPO3\FLOW3\Cache\Backend\NullBackend
@kitsunet
kitsunet / gist:3874692
Created October 11, 2012 18:54
initializeAction
public function initializeCreateEventAction() {
$propertyMappingConfiguration = $this->arguments->getArgument('event')->getPropertyMappingConfiguration();
$propertyMappingConfiguration->setTypeConverterOption('TYPO3\Flow\Property\TypeConverter\PersistentObjectConverter', self::CONFIGURATION_TARGET_TYPE, 'YOUR_TARGET_TYPE_HERE');
}
@kitsunet
kitsunet / Objectives.php
Created December 3, 2012 18:28
setMeasures()
<?php
class Objectives {
public function setMeasures($measures) {
$this->measures = $measures;
foreach($measures as $measure {
$measure->setObjective($this);
}
@kitsunet
kitsunet / gist:4637125
Last active December 11, 2015 17:48 — forked from dfeyer/gist:4637101
<?php
namespace Ttree\Medialib\Core\Security;
/* *
* This script belongs to the FLOW3 package "Ttree.Medialib". *
* *
* It is free software; you can redistribute it and/or modify it under *
* the terms of the GNU Lesser General Public License, either version 3 *
* of the License, or (at your option) any later version. *
* *
@kitsunet
kitsunet / TargetNodeAspect.php
Created February 11, 2013 13:45
TargetNodeAspect to route Conference package plugins to configured nodes. A configuration (in Settings.yaml) looks like this: (Package name is TYPO3.Conference, if you adapt the Aspect to your package you need to adapt the settings path.) TYPO3: Conference: targetNodeMappings: 'typo3_typo3_typoscript_plugin': - package: TYPO3.Conference controll…
<?php
namespace TYPO3\Conference\Aspect;
/* *
* This script belongs to the FLOW3 package "Conference". *
* *
* It is free software; you can redistribute it and/or modify it under *
* the terms of the GNU Lesser General Public License as published by the *
* Free Software Foundation, either version 3 of the License, or (at your *
* option) any later version. *
page.headerData {
description = ${node.getProperty('description')}
description << 1.wrap(prefix: '<meta name="description" content="', suffix: '" />')
keywords = ${node.getProperty('keywords')}
keywords << 1.wrap(prefix: '<meta name="keywords" content="', suffix: '" />')
}