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}
}
resources:
methods:
Org_Greeter_Standard_Public_Actions: 'method(Org\Greeter\Controller\StandardController->.*Action())'
acls:
Everybody:
methods:
Org_Greeter_Standard_Public_Actions: GRANT
-
name: 'Package Vendor.Package'
uriPattern: '<VendorPackageSubroutes>'
subRoutes:
'VendorPackageSubroutes':
package: 'Vendor.Package'
variables:
'sitemapBaseUri': ''
-
foo = TYPO3.Neos:ContentCollection {
tagName = 'ul'
}
@kitsunet
kitsunet / gist:b730c20ae30565ebac95
Created November 25, 2014 18:59
Neos example .gitignore
/Build/Reports
/Build/BuildEssentials
/Configuration/Development
/Configuration/Production
/Configuration/Testing
/Configuration/PackageStates.php
/Data/
/Packages/Application
/Packages/Framework
/Packages/Libraries
class StreamResource {
public function close(); // fclose
public function read($length = NULL); // fread
public function write($content); // fwrite
public function rewind(); // rewind()
public function getMetaData(); // stream_get_meta_data(), maybe even separate getters for the meta data information
}
@kitsunet
kitsunet / Settings.yaml
Last active May 16, 2017 07:24
TYPO3 Flow custom php cli binary
TYPO3:
Flow:
core:
phpBinaryPathAndFilename: '/usr/local/bin/php_cli'
resource:
publishing:
fileSystem:
mirrorMode: copy
prototype(TYPO3.NeosDemoTypo3Org:YouTube) >
prototype(TYPO3.NeosDemoTypo3Org:YouTube) < prototype(TYPO3.TypoScript:Value) {
@cache {
mode = 'uncached'
context {
1 = 'node'
}
}
value = ${request.httpRequest.arguments.foo + ' - ' + q(node).property('video')}
'Foo.Bar:NodeType':
label:
expression: ${some expression here}
generator:
class: 'Some\Node\Label\Generator'
options:
ifNecessary: TRUE
@kitsunet
kitsunet / NodeTypes.yaml
Created July 31, 2014 12:19
references field example for TYPO3 Neos NodeTypes.yaml
'Me.My:NodeType':
# superTypes and ui stuff here
properties:
yourProperty: #adjust to your needs
type: references
ui:
label: 'referenced stuff' #adjust to your needs
inspector:
group: general #adjust to your needs
editorOptions: