This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$node = new TYPO3\Surf\Domain\Model\Node('production'); | |
$node | |
->setHostname('my.node.com') | |
->setOption('username', 'myuser'); | |
$application = new TYPO3\Surf\Application\Neos\Neos('My Node'); | |
$application | |
->setOption('keepReleases', 3) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace My\Package\ResourceManagement\Target; | |
use Neos\Flow\Annotations as Flow; | |
use Cocur\Slugify\Slugify; | |
use Neos\Flow\ResourceManagement\ResourceMetaDataInterface; | |
use Neos\Media\Domain\Repository\AssetRepository; | |
/** | |
* A target which publishes resources by creating symlinks with the filename based on the files title. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
listen [::]:80; | |
server_name example.org; | |
charset utf-8; | |
client_max_body_size 50M; | |
root /var/www/example.org/releases/current/Web/; | |
index index.php; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = '' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prototype(My.Site:Component.ContentCollection) < prototype(Neos.Neos:ContentComponent) { | |
@cache { | |
mode = 'cached' | |
entryIdentifier { | |
collection = ${node} | |
} | |
entryTags { | |
1 = ${Neos.Caching.descendantOfTag(node)} | |
2 = ${Neos.Caching.nodeTag(node)} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prototype(My.Example:Component.Example) < prototype(Neos.Fusion:Component) { | |
inputVar1 = '' | |
inputVar2 = ${[]} | |
renderer = Neos.Fusion:Component { | |
@apply.props = ${props} | |
customVar = ${Array.join(props.inputVar2, ',') + props.inputVar1} | |
renderer = afx` | |
<div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
charset utf-8; | |
location ~ /\. { | |
access_log off; | |
log_not_found off; | |
deny all; | |
} | |
location = /favicon.ico { | |
log_not_found off; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prototype(MyVendor.Package:Component.Example) < prototype(Neos.Fusion:Component) { | |
translations = ${MyVendor.Package.Translation.getTranslations('MyVendor.Package', 'MyJsApp')} | |
renderer = afx` | |
<div data-translations={Json.stringify(props.translations)} id="my-cool-app">Loading the app ...</div> | |
` | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Modify all image tags and add the attribute | |
prototype(Neos.Neos:ImageTag) { | |
attributes.loading = 'lazy' | |
} | |
# Example on the usage, see https://fusionpen.punkt.de/fusionpen/4e19425fc39184b13790ff00e8ce1c10328fa36d.html | |
prototype(YourVendor:LazyImageDemo) < prototype(Neos.Fusion:Component) { | |
chapters = ${q(site).find('[instanceof Neos.Demo:Document.Chapter]').get()} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a variant of th enormal ContentComponent that already includes | |
# a prop which loads it's children as ContentCollectionRenderer and has the necessary caching configuration | |
# to make everything work like with the standard ContentCollection. | |
# | |
# You can inherit from this prototype instead of ContentComponent for the Schedule and Day types above | |
# and remove the `items` prop from them. | |
prototype(Meetup.Example:ContentCollectionComponent) < prototype(Neos.Neos:ContentComponent) { | |
items = Neos.Neos:ContentCollectionRenderer | |
@cache { |