Upgrade to Pro — share decks privately, control downloads, hide ads and more …

A Round Trip through your Presentation Layer wi...

A Round Trip through your Presentation Layer with Fusion

Get a better understanding of Fluid and Fusion for your Neos CMS project

Dominique Feyer

March 31, 2017
Tweet

More Decks by Dominique Feyer

Other Decks in Programming

Transcript

  1. root { default { renderPath = ‘page’ } } root.blog

    { @position = ‘before default’ condition = ${q(node).is(‘[instanceof Your.Site:Blog]’)} type = ‘Your.Site:Blog.Document’ }
  2. prototype(Your.Site:Blog.Document) < prototype(Page) { head.stylesheets.main = … body = Your.Site:Blog

    } prototype(Your.Site:Blog) < prototype(Neos.Fusion:Template) { templatePath = ‘…’ main = Neos.Neos:ContentCollection { nodePath = 'main' } }
  3. prototype(Your.Site:Book.Json) { title = ${q(bookNode).property(‘title’)} price = ${Price.get(bookNode)} @process.stringify =

    ${Json.stringify(value)} } prototype(Your.Site:Book.Json) < prototype(Neos.Fusion:RawArray)