- 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
| <?php | |
| namespace Vendor\Site\Command; | |
| use Neos\Flow\Annotations as Flow; | |
| use Neos\Flow\Cli\CommandController; | |
| use Neos\Flow\ResourceManagement\CollectionInterface; | |
| use Neos\Flow\ResourceManagement\PersistentResource; | |
| use Neos\Flow\ResourceManagement\ResourceManager; | |
| use Neos\Flow\ResourceManagement\ResourceRepository; |
| prototype(Vendor.Site:TestImageFormatSwitch) < prototype(Neos.Fusion:Component) { | |
| @styleguide { | |
| title = "Test Image Format Switch" | |
| props { | |
| imageSource = Sitegeist.Kaleidoscope:DummyImageSource | |
| } | |
| useCases { | |
| square { |
| # @see https://symfony.com/doc/current/components/console/helpers/questionhelper.html | |
| $bundles = ['AcmeDemoBundle', 'AcmeBlogBundle', 'AcmeStoreBundle']; | |
| $question = new Question('Please enter the name of a bundle: ', 'FooBundle'); | |
| $question->setAutocompleterValues($bundles); | |
| $input = new SymfonyStringInput(''); | |
| $output = new SymfonyConsoleOutput(); | |
| $helper = new QuestionHelper(); |
| 'Neos.Neos:Content': | |
| options: | |
| fusion: | |
| prototypeGenerator: Neos\Neos\Domain\Service\DefaultContentPrototypeGenerator | |
| prototype(Vendow.Site:ThemedComponent) < prototype(Neos.Fusion:Component) { | |
| name = null | |
| theme = 'Theme1' | |
| # all props | |
| renderer = Neos.Fusion:Renderer { | |
| type = ${props.theme + ':' + props.name} |
| <?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; |
| {{/* | |
| Create revion color "green" / "blue" from release number | |
| */}} | |
| {{- define "project.revisioncolor" -}} | |
| {{- if mod .Release.Revision 2 -}} | |
| {{- printf "green" -}} | |
| {{- else -}} | |
| {{- printf "blue" -}} | |
| {{- end -}} | |
| {{- end -}} |
| 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' |