Skip to content

Instantly share code, notes, and snippets.

View svparijs's full-sized avatar

Sebastiaan van Parijs svparijs

View GitHub Profile
@svparijs
svparijs / Fluid.html
Created May 15, 2019 17:24 — forked from pixelbrackets/Fluid.html
TYPO3 Neos Backend Conditions
<f:if condition="{node.context.workspace.name} == 'live'">
Only visible in live frontend
</f:if>
<f:security.ifAccess privilegeTarget="TYPO3.Neos:Backend.GeneralAccess">
<f:if condition="{node.context.workspace.name} != 'live'">
Only visible in backend workspace
</f:if>
</f:security.ifAccess>
@svparijs
svparijs / gist:32e0b865da91b2317e8163ad01cd9043
Created May 15, 2019 17:23
Prevent divs wrapping for contentcollections / change their css classes
page = Page {
body {
// These are your content areas, you can define as many as you want, just name them and the nodePath.
content {
// The default content section
main = PrimaryContent {
nodePath = 'main'
}
// A footer ContentCollection
footer = ContentCollection {

Keybase proof

I hereby claim:

  • I am van2parijs on github.
  • I am svparijs (https://keybase.io/svparijs) on keybase.
  • I have a public key ASCzfAKAX7V9ge6hZbqZaiDKgg_Yl8TONmvuRhZcc5YNmAo

To claim this, I am signing this object:

@svparijs
svparijs / root.ts2
Created October 31, 2017 09:14
How to fill missing newsletter = ''
SMS < page
SMS {
newsletter {
renderer = RFY.BKWI:SmsMailRender
}
head {
stylesheets.site.templatePath = 'resource://RFY.BKWI/Private/Newsletter/Templates/SMS/Browser.html'
javascripts.site.templatePath = 'resource://RFY.BKWI/Private/Newsletter/Templates/SMS/Browser.html'
}
@svparijs
svparijs / .gitlab-ci.yml
Created October 11, 2017 12:29 — forked from mupkoo/.gitlab-ci.yml
Using Ember-CLI with Chrome on GitLab CI
image: node:7.10
cache:
paths:
- node_modules/
- bower_components/
before_script:
# Install Chrome
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
@svparijs
svparijs / FormErrors.php
Created October 9, 2017 09:04 — forked from dework/FormErrors.php
Symfony 2 Get All Form Errors
<?php
namespace Chyrius\SiteBundle\Form;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\Form\Form;
/**
* @todo Обрабатывать так же ошибки детей-детей
*/
class FormErrors
@svparijs
svparijs / nginx.conf
Created March 28, 2017 17:15 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
<?php
namespace Sfi\Migration\Command;
/* *
* This script belongs to the TYPO3 Flow package "Sfi.Migration". *
* *
* */
use TYPO3\Flow\Annotations as Flow;
use TYPO3\Flow\Cli\CommandController;
@svparijs
svparijs / Caches.yaml
Last active August 29, 2015 14:22 — forked from aertmann/Caches.yaml
Flow_Session_Storage:
backendOptions:
cacheDirectory: '%FLOW_PATH_DATA%Session/Flow_Session_Storage'
Flow_Session_MetaData:
backendOptions:
cacheDirectory: '%FLOW_PATH_DATA%Session/Flow_Session_MetaData'
URL:
http://example.com/nodename.html?
--vendor_name-fooplugin[package]=vendor.name&
--vendor_name-fooplugin[controller]=standard&
--vendor_name-fooplugin[action]=index&
--vendor_name-fooplugin[object][__identity]=4de2cc9c-79c0-55e7-310e-91c5ae2fea19
should result in
http://example.com/nodename/custom-part/objectname.html