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:5134032
Created March 11, 2013 12:54
Nested viewhelper inside an array in Fluid
<f:form.textfield additionalAttributes="{data-hint: '{f:translate(id: \'hint\')}'}"
TYPO3:
Flow:
error:
errorHandler:
exceptionalErrors: [%E_USER_ERROR%, %E_RECOVERABLE_ERROR%, %E_WARNING%, %E_USER_WARNING%]
# Action
/**
* Shows a list of books
*
* @return void
*/
public function booksAction() {
$genre = $this->getQueryStringVar('genre');
prototype(Your.Package:StartingPoint.De) < prototype(TYPO3.TypoScript:Value) {
value = ${q(site).children('de').children('artikel').get(0)}
}
prototype(Your.Package:StartingPoint.En) < prototype(TYPO3.TypoScript:Value) {
value = ${q(site).children('en).children('article').get(0)}
}
config.tx_extbase {
persistence {
classes {
My_Wonderful_Class = tx_some_other_table
My\Wonderful\Class = tx_example_for_namespaced_class
}
}
}
@kitsunet
kitsunet / NodeTypes.yaml
Last active August 29, 2015 13:56
Bootstrap Tabs in Neos
'TYPO3.NeosDemoTypo3Org:Tabs':
superTypes: ['TYPO3.Neos:Content']
childNodes:
tabItems:
type: 'TYPO3.Neos:ContentCollection'
ui:
label: 'Tabs'
group: 'plugins'
@kitsunet
kitsunet / gist:9660782
Created March 20, 2014 10:11
Neos Workshop
http://startbootstrap.com/business-casual
{namespace neos=TYPO3\Neos\ViewHelpers}
{namespace media=TYPO3\Media\ViewHelpers}
<div class="article-list-element">
<media:image asset="{headerimage}" alt="{title}" maximumHeight="465" />
<h2>{title}</h2>
{neos:contentElement.editable(property: 'teaser')}
<p><neos:link.node node="{node}" class="btn btn-default">Details about this</neos:link.node></p>
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)}
}
}
'Foo.Bar:Box':
superTypes: ['TYPO3.Neos:Content']
abstract: FALSE
childNodes:
boxcontent:
type: 'TYPO3.Neos:ContentCollection'
ui:
group: 'structure'
label: 'Content Box'
icon: 'icon-columns'