Skip to content

Instantly share code, notes, and snippets.

View sorenmalling's full-sized avatar

Søren Malling sorenmalling

View GitHub Profile
TYPO3:
Flow:
security:
enable: TRUE
# firewall:
# filters:
# -
# patternType: 'ControllerObjectName'
# patternValue: 'Comundu\Core\Controller\ApiController'
# interceptor: 'RequireAuthentication'
<?php
namespace Meteko\Extrapages\Service;
use Meteko\Extrapages\Domain\Model\Page;
class AdditionalAttributesService {
/**
* entryRepository
➜ comundu git:(855c484) ✗ ./flow doctrine:migrate
Uncaught Exception
An exception occurred while executing 'ALTER TABLE
typo3_media_domain_model_image ADD CONSTRAINT
typo3_media_domain_model_image_ibfk_1 FOREIGN KEY (resource) REFERENCES
typo3_flow3_resource_resource(flow3_persistence_identifier)':
SQLSTATE[HY000]: General error: 1005 Can't create table
'comundu_dev.#sql-368a_be3' (errno: 150)
class CategoryService {
/**
* Build category selector
*
* @param array $config array (passed by reference) which contains the current information about the current field being rendered
* @param \TYPO3\CMS\Backend\Form\FormEngine $formEngine a reference to the parent object (an instance of the t3lib_TCEforms class).
*
* @return string
*/
GoogleAnalytics = TYPO3.TypoScript:Template {
@position = 'before closingBodyTag'
templatePath = 'resource://Mindelunden.Homepage/Private/Templates/TypoScriptObjects/GoogleAnalytics.html'
tracingIdentifier = 'UA-38895091-8'
siteName = 'mindelundenryvangen.dk'
}
prototype(TYPO3.Neos:PrimaryContent) {
blogPost {
condition = ${q(documentNode).is('[instanceof Meteko.Homepage:Post]')}
type = 'Meteko.Homepage:Post'
}
someThingElse {
condition = ${q(documentNode).is('[instanceof Meteko.Homepage:Event]')}
renderPath = 'somepath'
}
# Default taken from DefaultTyposcript.ts2
-
requestFilter: 'parentRequest.isPackage("TYPO3.Neos") && isPackage("TYPO3.Neos.Taxonomy") && isController("Module\Management\Vocabulary")'
options:
layoutRootPaths:
'TYPO3.Neos.Taxonomy' : 'resource://TYPO3.Neos/Private/Layouts'
prototype(Epic.Site:ListNodes) < prototype(TYPO3.Neos:Content) {
lookingIn = ${q(node).property('lookingIn')}
lookingFor = ${q(node).property('lookingFor')}
beginLooking = ${q(node).property('beginLooking')}
stopLooking = ${q(node).property('stopLooking')}
itemsArray = TYPO3.TypoScript:Collection {
collection = ${q(site).children(this.lookingIn).children().filter(this.lookingFor).slice(this.beginLooking,this.stopLooking).get()}
itemName = 'node'
<f:flashMessages as="flashMessages">
<dl class="messages">
<f:for each="{flashMessages}" as="flashMessage">
<dt>{flashMessage.code}</dt>
<dd>{flashMessage}</dd>
</f:for>
</dl>
</f:flashMessages>
'Meteko.RulesExample:Workspace':
name: 'Workspace example'
# When should this be triggered
trigger: []
# Any validations (WorkflowValidatorInterfac) need to be meet
validators: []
# What tasks (WorkflowTaskInterface) should it trigger
tasks:
oneTask: []
anotherTask: []