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 / gist:1476433
Created December 14, 2011 12:44
datetime property as array
<span style="float: left; margin: 0 15px 0 0;">
<f:form.textfield name="trip[problemTime][date]" id="problemDate" class="datepicker" type="text" value="{f:format.date(format: 'd.m.Y', date: today)}" />
</span>
<f:form.hidden name="trip[problemTime][dateFormat]" value="d.m.Y" />
Uhrzeit:
<f:form.select name="trip[problemTime][hour]" id="problemTimeHour" options="{00: '00', 01: '01', 02: '02', 03: '03', 04: '04', 05: '05', 06: '06', 07: '07', 08: '08', 09: '09', 10: '10', 11: '11', 12: '12', 13: '13', 14: '14', 15: '15', 16: '16', 17: '17', 18: '18', 19: '19', 20: '20', 21: '21', 22: '22', 23: '23'}" />
:
<f:form.select name="trip[problemTime][minute]" id="problemTimeMin" options="{00: '00', 01: '01', 02: '02', 03: '03', 04: '04', 05: '05', 06: '06', 07: '07', 08: '08', 09: '09', 10: '10', 11: '11', 12: '12', 13: '13', 14: '14', 15: '15', 16: '16', 17: '17', 18: '18', 19: '19', 20: '20', 21: '21', 22: '22', 23: '23', 24: '24', 25: '25', 26: '26', 27: '27', 28: '28', 29:
@kitsunet
kitsunet / gist:1790085
Created February 10, 2012 14:56
flashMessages VH example for each
<f:flashMessages as="flashMessages">
<dl class="messages">
<f:for each="{flashMessages}" as="flashMessage">
<dt class="{flashMessage.severity}">{flashMessage.code}</dt>
<dd>{flashMessage}</dd>
</f:for>
</dl>
</f:flashMessages>
@kitsunet
kitsunet / gist:1845639
Created February 16, 2012 15:31
page teaser
lib.myContent = COA
lib.myContent {
10 < styles.content.get
10.select.pidInList = INSERT_YOUR_PAGE_ID_HERE
10.stdWrap.stripHtml = 1
10.stdWrap.crop = 100 | ... | 1
20 = TEXT
20.value = READ MORE
20.typolink.parameter = INSERT_YOUR_PAGE_ID_HERE
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 / ext_tables
Created February 29, 2012 09:07
multi plugin extbase
Tx_Extbase_Utility_Extension::configurePlugin(
$_EXTKEY,
'Frontend',
array(
'Post' => 'list, archivelist, latestlist, show',
'Comment' => 'create',
),
// non-cacheable actions
array(
@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>
<?php
namespace Demo\Auto\Command;
/* *
* This script belongs to the FLOW3 framework. *
* *
* 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 / cycle example
Created April 26, 2012 06:54
Some stuff
<ul>
<f:for each="{0:1, 1:2, 2:3, 3:4}" as="foo">
<f:cycle values="{0: 'odd', 1: 'even'}" as="zebraClass">
<li class="{zebraClass}">{foo}</li>
</f:cycle>
</f:for>
</ul>
@kitsunet
kitsunet / Policies.yaml
Created April 27, 2012 15:30
TYPO3CR Policy
# #
# Security policy for the TYPO3CR package #
# #
resources:
entities:
TYPO3_TYPO3CR_Domain_Model_Node:
TYPO3_TYPO3CR_Domain_Model_Node_InLiveWorkspace: this.workspace.name == 'live'
TYPO3_TYPO3CR_Domain_Model_Node_NotInLiveWorkspace: this.workspace.name != 'live'