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 Vendor\Site\Controller; | |
use Neos\Flow\Annotations as Flow; | |
use Neos\Flow\Mvc\Controller\ActionController; | |
use Neos\SwiftMailer\Message as SwiftMailerMessage; | |
class ContactController extends ActionController | |
{ | |
/** |
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
videos = Neos.Fusion:Loop { | |
items = Vendor.Site:VideoNodesByTag { | |
tags = | |
} | |
renderer = afx`<div>{item.title}</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
SELECT node.nodetype, parent.nodetype, count(*) FROM `neos_contentrepository_domain_model_nodedata` AS node | |
JOIN `neos_contentrepository_domain_model_nodedata` | |
AS parent | |
ON node.parentpath = parent.path | |
WHERE parent.nodetype='Vendor.Site:NodeType' | |
GROUP by node.nodetype |
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 Vendor\Site\Controller; | |
use Neos\Flow\Annotations as Flow; | |
use Neos\Neos\Controller\Module\AbstractModuleController; | |
use Neos\Fusion\View\FusionView; | |
class FusionController extends AbstractModuleController | |
{ | |
/** |
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(Vendor.Site:Example) < prototype(Neos.Fusion:Component) { | |
foo = null | |
bar = null | |
renderer = Neos.Fusion:Component { | |
# pass all outer props to the renderer | |
@apply.props = ${props} | |
# alternatively pass explicit props to the renderer | |
foo = ${props.foo} |
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
jsonLd = json`{ | |
"@context": "http://schema.org", | |
"@type": "Organization", | |
"name": "Neos", | |
"url": "${__someExpression__}", | |
"contactPoint:$<Neos.Fusion:Map>": { | |
"items": "${__someExpression__}", | |
"itemRenderer": { | |
"@type": "ContactPoint" | |
"contactType": "${__someExpression__}", |
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
// render all validation errors of current request | |
renderer = afx` | |
<div @if.hasErrors={request.internalArguments.__submittedArgumentValidationResults.flattenedErrors}> | |
ERORR | |
<ul> | |
<Neos.Fusion:Loop items={request.internalArguments.__submittedArgumentValidationResults.flattenedErrors} itemKey="path" itemName="errors"> | |
<Neos.Fusion:Loop items={errors} itemName="error"> | |
<li>{path} - {error}</li> | |
</Neos.Fusion:Loop> | |
</Neos.Fusion:Loop> |
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
hotelCount = ${Translation.id('foundHotelsLabel').source('HotelList').package('Vendor.Site').arguments({count:12, location:'timbuktu'}).quantity(12).translate()} |
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
error { | |
// find the 404 document | |
@context.notfoundDocument = ${q(site).children('notfound').get(0)} | |
// use german not found page if the request uri starts with /de | |
@[email protected] = ${q(value).context({'dimensions': {'language': ['de']}, 'targetDimensions': {'language': 'de'}}).get(0)} | |
@[email protected][email protected] = ${String.startsWith(request.httpRequest.serverParams.REQUEST_URI, '/de')} | |
// render the 404 document via /root path |
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
Neos: | |
Media: | |
# show Variants tab in the inspector | |
Browser: | |
features: | |
variantsTab: | |
enable: true | |
# define Variant presets |