Skip to content

Instantly share code, notes, and snippets.

View kitsunet's full-sized avatar
:octocat:

Christian Müller kitsunet

:octocat:
View GitHub Profile
prototype(Fleos:TwoColumn) >
prototype(Fleos:TwoColumn) < prototype(TYPO3.Neos.NodeTypes:MultiColumn) {
attributes.class = 'row'
attributes.style = TYPO3.Neos:ImageUri {
asset = ${q(node).property('backgroundImage')}
@process.wrapBackgroundImage = ${value ? (' background-image: url(' + value + ');') : ''}
@process.addGenericBackground = ${'background: ' + q(node).property('background') + ';' + value}
}
'Foo.Bar:NodeType':
label:
expression: ${some expression here}
generator:
class: 'Some\Node\Label\Generator'
options:
ifNecessary: TRUE
@kitsunet
kitsunet / theme.inc
Last active August 29, 2015 14:00 — forked from mortendk/theme.inc
function mergeAttributes($array) {
$mergedAttributes = array();
foreach(func_get_args() as $argument) {
foreach($argument as $key => $value) {
if (!isset($mergedAttributes[$key]) {
$mergedAttributes[$key] = array();
}
if (is_array($value)) {
foreach($value as $innerValue) {
$mergedAttributes[$key][] = $innerValue;
@kitsunet
kitsunet / Events.ts2
Last active August 29, 2015 14:00 — forked from nezaniel/Events.ts2
prototype(CORE4.EventBase:Event) >
prototype(CORE4.EventBase:Event) < prototype(TYPO3.Neos:Page) {
body {
templatePath = 'resource://CORE4.EventBase/Private/Templates/NodeTypes/Event.html'
sectionName = 'body'
content {
images = ContentCollection {
nodePath = 'images'
}
description = PrimaryContent {
prototype(Customer.Products:ProductImageContainer) {
text = ${q(node).property('text')}
link = ${q(node).property('link')}
image = TYPO3.Neos.NodeTypes:Image {
@override.node = ${q(node).children('content').children('[instanceof TYPO3.Neos.NodeTypes:Image]').get(0)}
}
}
# Action
/**
* Shows a list of books
*
* @return void
*/
public function booksAction() {
$genre = $this->getQueryStringVar('genre');
@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. *
* *
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 / _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;
}
@kitsunet
kitsunet / Index.html
Created March 14, 2012 10:47 — forked from Allisone/Index.html
Create Account
<f:flashMessages />
<f:form action="create" controller="Login" method="post" name="createform">
<div><label>Email:</label><f:form.textfield name="email" /></div>
<div><label>Password:</label><f:form.textfield name="pw" /></div>
<div><label>Repeat Password:</label><f:form.textfield name="pwr" /></div>
<div><label>Username:</label><f:form.textfield name="uname" /></div>
<f:form.submit value="Register and Login" />
</f:form>