Skip to content

Instantly share code, notes, and snippets.

View jonnitto's full-sized avatar
:octocat:
Web Maniac

Jon Uhlmann jonnitto

:octocat:
Web Maniac
View GitHub Profile
@mneuhaus
mneuhaus / deploy.php
Created October 21, 2015 07:20
Basic test for deploying a flow application through deployer
<?php
// All Deployer recipes are based on `recipe/common.php`.
require 'recipe/common.php';
// require 'rsync.php'; // optionally used from https://github.com/deployphp/recipes
require 'flow.php';
env('php_binary', 'php_cli');
set('shared_dirs', [
@Sebobo
Sebobo / Debug.fusion
Last active March 28, 2018 15:18
Neos Fusion Console debug helper for Neos 3.x
##
# This object will output fusion variables to the browser console.
#
# Example usage:
#
# @process.addDebugOutput = Shel.Helper:Debug {
# output = ${node.identifier}
# }
#
# Which will prepend the current node oder document node label by default.
@Sebobo
Sebobo / WithFusionHelperComponents.fusion
Last active October 9, 2019 07:59
Structured data tags in Neos CMS
prototype(Neos.Seo:StructuredData.RootObject) < prototype(Neos.Seo:StructuredData.Object) {
context = 'http://schema.org'
@process.toJson = ${Json.stringify(value)}
@process.wrap = ${'<script type="application/ld+json">' + value + '</script>'}
}
prototype(Neos.Seo:StructuredData.Object) < prototype(Neos.Fusion:Component) {
// Optional context. Usually "http://schema.org" for root objects
context = ''
@jobee
jobee / ConsiderParentsVisibilityOperation.php
Last active February 14, 2022 08:44
A FlowQuery operation which applies an extra filter to consider parent nodes visibility
<?php
namespace Your\Package\Eel\FlowQueryOperations;
use Neos\ContentRepository\Domain\Projection\Content\TraversableNodeInterface;
use Neos\ContentRepository\Exception\NodeException;
use Neos\Eel\FlowQuery\FlowQuery;
use Neos\Eel\FlowQuery\FlowQueryException;
use Neos\Eel\FlowQuery\Operations\AbstractOperation;
use Neos\Flow\Annotations as Flow;
use Neos\ContentRepository\Domain\Model\NodeInterface;