Issue Feature Closed

#23853Array in FLUIDTEMPLATE

Stefan Froemken 10/27/10, 15:54 updated 10/02/18, 12:42

Description

My TS:

page.100 = FLUIDTEMPLATE
page.100 {
  file = fileadmin/templates/fluid.html
  variables {
    myName = TEXT
    myName.value = Stefan Frömken

    customer = CONTENT
    customer {
      select {
        pidInList = 8
      }
      returnArray = 1 (This could be a new option)
      table = fe_users
    }
  }
}

My Template:
<html> <head> <title>FLUID-Template</title> </head> <body> <p>Hello: {myName}</p> <p>This are my customers</p> <ul> <f:for each="{customer}" as="daten"> <li>{daten.firstname} {daten.lastname}</li> </f:for> </ul> </body> </html>

Maybe there is a possibility to return Arrays in some cObjects.
(issue imported from #M16144)

Reviews 1