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
| # | |
| # The rendering is implemented as special renderer for the error messages with a specific status code | |
| # | |
| # The fusion `error` path is rendered with only `site` and the `error` in the fusion context | |
| # | |
| error = Neos.Fusion:Case { | |
| @context.notFoundNode = ${q(site).children('[uriPathSegment == 404]').get(0)} | |
| 404 { | |
| condition = ${error.status == 404 && notFoundNode} |
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
| # | |
| # Presentational - prototype that encapsulates rendering of a page header | |
| # without caring where title and description originate from | |
| # | |
| # Notice: | |
| # - the base prototype is Neos.Fusion:Component | |
| # | |
| prototype(Vendor.Site:Component.Organism.Head) < prototype(Neos.Fusion:Component) { | |
| title = '' | |
| intro = '' |
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 Test\BeModule\Controller; | |
| use Neos\Flow\Annotations as Flow; | |
| use Neos\Flow\Mvc\View\ViewInterface; | |
| use Neos\Fusion\View\FusionView; | |
| use Neos\Neos\Controller\Module\AbstractModuleController; | |
| class ExampleController 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:Component.Organism.Header.Fixtures) < prototype(Neos.Fusion:DataStructure) { | |
| mainMenuItems ... | |
| languageMenuItems ... | |
| } |
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
| // | |
| // the form component creates a formDescription object and adds it to context `form` | |
| // | |
| prototype(Neos.Fusion.Form:Form) < prototype(Neos.Fusion.Forms:FormComponent) { | |
| renderer = afx` | |
| <form action={form.action}> | |
| <div style="display: none"> | |
| <Neos.Fusion:Loop items={form.hiddenFields} itemName="hiddenField"> | |
| <input type="hidden" name={hiddenField.name} value={hiddenField.value} /> | |
| </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
| Neos: | |
| Media: | |
| # show Variants tab in the inspector | |
| Browser: | |
| features: | |
| variantsTab: | |
| enable: true | |
| # define Variant presets |
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 | |
| @context.notfoundDocument.@process.inGerman = ${q(value).context({'dimensions': {'language': ['de']}, 'targetDimensions': {'language': 'de'}}).get(0)} | |
| @context.notfoundDocument.@process.inGerman.@if.requestStartsWithDe = ${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
| 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
| // 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> |