[TYPO3-dev] Array as data in TS
Christian Opitz - Netzelf
christian.opitz at netzelf.de
Mon Jan 11 17:28:27 CET 2010
Hi list,
i have a question regarding TypoScript:
Is there a way to use an array as data source for content objects?
May be an example explains better, what i want to do:
<?php
//Source array:
$_GET = Array(
'array' => Array(
0 => Array('title' => 'foo'),
1 => Array('title' => 'bar'),
2 => Array('title' => 'baz')
)
);
?>
//TypoScript:
temp.myArrayContent = COA
temp.myArrayContent {
data = GPvar:array
wrap = <ul>|</ul>
10 = TEXT
10.data = title
10.wrap = <li>|</li>
}
<!--Result:-->
<ul><li>foo</li><li>bar</li><li>baz</li></ul>
Do you think there is a way to realize that with existing TypoScript? If
not what do you think of an extension that provides a new cObject like
for instance ARRAY_COBJ?
Thanks and cheers,
Christian
More information about the TYPO3-dev
mailing list