Issue Bug Closed

#23744A new TypoScript cObject: FLUIDTEMPLATE

Benni Mack 10/15/10, 22:33 updated 03/29/11, 17:45

Description

This is a result of some enthusiastic guys (Steffen Ritter and me) from the code sprint. Something we wanted for a long time, and this is our first version: a new Typoscript Object Type called “FLUIDTEMPLATE”. Guess what it does: Yes, it can be used as a replacement for TEMPLATE, with (almost) all the glitter that Fluid has to offer.

The fluid template syntax will look like this:

page = PAGE
page.10 = FLUIDTEMPLATE
page.10 {

  1. the FLUID template, has stdWrap functionality
    file = fileadmin/mytemplates/mytemplate.html
  1. setting a specific partials path, usually it’s layouts/ underneath the template file
    partialRootPath = fileadmin/partials/
  1. setting a specific layout path, usually it’s layouts/ underneath the template file
    layoutRootPath = fileadmin/layouts/
  1. setting variables that should be available in
  2. the fluid template
    variables {
    mytitle = TEXT
    mytitle.data = page:title
    }
    }

(issue imported from #M16008)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.