Skip to content

Instantly share code, notes, and snippets.

View sorenmalling's full-sized avatar

Søren Malling sorenmalling

View GitHub Profile
@sorenmalling
sorenmalling / Routes.yaml
Created October 14, 2013 11:04
TYPO3 Flow Routes.yaml
-
name : 'API'
uriPattern: 'api/{@action}(/{object})'
acceptedHttpMethods: ['POST', 'GET', 'PUT', 'DELETE']
appendExceedingArguments: TRUE
defaults:
'@package': 'Vender.Package'
'@controller': 'Rest'
'@format': 'json'
-
@sorenmalling
sorenmalling / Settings.yaml
Created October 22, 2013 09:27
Adding firewall filters
TYPO3:
Flow:
security:
firewall:
rejectAll: FALSE
filters:
-
patternType: 'URI'
patternValue: '/api/.*'
selfservice_boolS = CONTENT
selfservice_boolS {
table = pages
select {
uidInList = this
pidInList = 0
selectFields = sys_category.*
join = sys_category_record_mm ON pages.uid = sys_category_record_mm.uid_foreign JOIN sys_category ON sys_category.uid = sys_category_record_mm.uid_local
where = sys_category_record_mm.tablenames = 'pages' AND sys_category.pid = {$uid.pages.tags} AND sys_category.uid = 11
}
TYPO3:
Neos:
userInterface:
editPreviewModes:
googleSearch:
isEditingMode: FALSE
isPreviewMode: TRUE
typoScriptRenderingPath: 'googleSearch'
title: 'Google Search'
position: 100
@sorenmalling
sorenmalling / gist:7909815
Last active December 31, 2015 00:49
Override layoutRootPath for TYPO3.Neos.Taxonomy module - FINAL
-
requestFilter: 'parentRequest.isPackage("TYPO3.Neos") && isPackage("TYPO3.Neos.Taxonomy") && isController("Module\Management\Vocabulary")'
options:
layoutRootPaths:
'TYPO3.Neos.Taxonomy' : 'resource://TYPO3.Neos/Private/Layouts'
page = Page {
head {
stylesheets {
twitterbootstrap = TypoScript:Tag
twitterbootstrap {
tagName = 'link'
attributes {
type = 'text/css'
rel = 'stylesheet'
href = TypoScript:ResourceUri
curl 'http://scoutrace.sma/api/events/08513b82-91ca-c58a-ea11-2c365a8dcdec' -X PUT --data-binary '{"event":{"title":"Test event #10 123 mol a fdsf","__identity":"08513b82-91ca-c58a-ea11-2c365a8dcdec"}}' --compressed
$resourceName = $this->endpointConfiguration['options']['resourceName'];
$argument = new Argument($resourceName, 'array');
$argument->setValue($this->request->getArgument($resourceName));
$this->arguments->addArgument($argument);
TYPO3:
Flow:
aop:
globalObjects:
userInformation: TYPO3\Neos\Service\UserService
<?php
namespace TYPO3\Neos\ViewHelpers\Submodule;
use TYPO3\Flow\Annotations as Flow;
use TYPO3\Fluid\Core\ViewHelper\AbstractTagBasedViewHelper;
/**
* A View Helper to render a fluid template based on the given template path and filename.
*
* @Flow\Scope("prototype")