Skip to content

Instantly share code, notes, and snippets.

View kitsunet's full-sized avatar
:octocat:

Christian Müller kitsunet

:octocat:
View GitHub Profile
HLLEFT = TEXT
HLLEFT {
data = DB:pages:3:title
}
TXLEFT = COA
TXLEFT {
10 < styles.content.get
10.select.pidInList = 3
10.stdWrap.stripHtml = 1
10.stdWrap.crop = 100 | | 1
T3.Content.UI.PageTreeButton = T3.Content.UI.PopoverButton.extend({
popoverTitle: 'Page Tree',
$popoverContent: $('<div class="extjs-container"><div class="t3-dd-newpage">New page</div><div id="pagetree"></div><div class="t3-dd-deletionzone" id="ext-gen68">Drop here to delete</div></div>'),
_tree: null,
onPopoverOpen: function() {
if (this._tree) return;
this.tree = $("#pagetree").dynatree({
@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>
@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 / 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. *
* *
# Action
/**
* Shows a list of books
*
* @return void
*/
public function booksAction() {
$genre = $this->getQueryStringVar('genre');
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)}
}
}
@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 {
@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;