Project

General

Profile

Actions

Feature #23853

closed

Array in FLUIDTEMPLATE

Added by Stefan Froemken about 14 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-10-27
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:

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)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #43182: Split FLUIDTEMPLATE class to smaller methodsClosed2012-11-20

Actions
Actions

Also available in: Atom PDF