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
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
<?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
# | |
# 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
# | |
# 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
sum = Neos.Fusion:Reduce { | |
items = ${ __array_of_products__ } | |
initialValue = 0 | |
itemReducer = ${carry + item.price} | |
} | |
cheapest = Neos.Fusion:Reduce { | |
items = ${ __array_of_products__ } | |
initialValue = null | |
itemReducer = ${(!carry || carry.price > item.price) ? item : carry} |
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
# | |
# simple pagination with parameter appending to a uri | |
# | |
prototype(Vendor.Site:Components.Molecules.Pagination) < prototype(PackageFactory.AtomicFusion:Component) { | |
@styleguide { | |
title = 'Pagination' | |
props { | |
current = 12 | |
start = 8 | |
end = 16 |
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 Sitegeist\Monocle\FusionObjects; | |
/* | |
* This file is part of the Neos.Fusion package. | |
* | |
* (c) Contributors of the Neos Project - www.neos.io | |
* | |
* This package is Open Source Software. For the full copyright and license | |
* information, please view the LICENSE file which was distributed with this |
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
// Given the Neos.Fusion:Collection will iterate over the items that are given as array. | |
// If a ContentCollection is rendered and the nodes shall be edited inline the information | |
// wich node is rendererd has to be transferred to the collection whild keeping then interface | |
// of the component simple and serializable. | |
// | |
// This document discusses some of the possible syntax options. | |
// | |
// Automagic RawCollection | |
// |