A Round Trip through your Presentation Layer with Fusion

A Round Trip through your Presentation Layer with Fusion

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

5c35ea5ff0ba6e46116b1470509f96d1?s=128

Dominique Feyer

March 31, 2017
Tweet

Transcript

  1. 1.
  2. 10.
  3. 13.
  4. 17.
  5. 31.

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

    { @position = ‘before default’ condition = ${q(node).is(‘[instanceof Your.Site:Blog]’)} type = ‘Your.Site:Blog.Document’ }
  6. 33.

    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' } }
  7. 61.
  8. 64.
  9. 68.

    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)
  10. 77.
  11. 79.