- no clear cache button
- 100 % transparent for editors
- good caching makes sites fast
We are forced to configure caching right as otherwise editors will complain
| jsonLd = json`{ | |
| "@context": "http://schema.org", | |
| "@type": "Organization", | |
| "name": "Neos", | |
| "url": "${__someExpression__}", | |
| "contactPoint:$<Neos.Fusion:Map>": { | |
| "items": "${__someExpression__}", | |
| "itemRenderer": { | |
| "@type": "ContactPoint" | |
| "contactType": "${__someExpression__}", |
| 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} |
| <?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 | |
| { | |
| /** |
| 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 |
| videos = Neos.Fusion:Loop { | |
| items = Vendor.Site:VideoNodesByTag { | |
| tags = | |
| } | |
| renderer = afx`<div>{item.title}</div>` | |
| } |
| <?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 | |
| { | |
| /** |
| foo = Neos.Fosion:Reduce { | |
| items = ${something} | |
| initialValue = ${[]} | |
| # when the condition matches include the item into the result | |
| # otherwise return sam array as before | |
| itemReducer = ${ (__condition__) ? Array.push(carry, item) : carry} | |
| #defaults | |
| itemName = 'item' |
| {{/* | |
| Create revion color "green" / "blue" from release number | |
| */}} | |
| {{- define "project.revisioncolor" -}} | |
| {{- if mod .Release.Revision 2 -}} | |
| {{- printf "green" -}} | |
| {{- else -}} | |
| {{- printf "blue" -}} | |
| {{- end -}} | |
| {{- end -}} |
| <?php | |
| namespace Sitegeist\NodeShippingService\Command; | |
| use Neos\ContentRepository\Domain\Service\ImportExport\NodeExportService; | |
| use Neos\ContentRepository\Domain\Service\ImportExport\NodeImportService; | |
| use Neos\Flow\Annotations as Flow; | |
| use Neos\Flow\Cli\CommandController; | |
| use Neos\Neos\Exception as NeosException; | |
| use Neos\Utility\Files; | |
| use Neos\ContentRepository\Domain\Repository\NodeDataRepository; |