[TYPO3-dev] CONTENT: add support for virtual table
Steffen Kamper
info at sk-typo3.de
Fri Oct 22 11:03:24 CEST 2010
Hi,
Martin Kutschker schrieb:
>
> And 10 and 20 are the keys of the array? Numeric keys are not the best examples for an assoc. array :)
>
TS does not differentiate between number and string :)
Anyway i think the idea is not bad, but i would use ARRAY, eg
temp.data = ARRAY
temp.data {
key1 = value1
key2 = value2
}
or
temp.data = LOADARRAY
temp.data.source = TSFE:page
or
temp.data = LOADARRAY
temp.data.source.stdWrap.cObject = USER
temp.data.source.stdWrap.cObject.userFunc = myclass->getTsArray
prcessing:
temp.data.stdWrap.sort = ASC
temp.data.stdWrap.sort = REVERSE
temp.data.stdWrap.drop = first
temp.data.stdWrap.drop = last
temp.dataprocess = LOOP
temp.dataprocess.source < temp.data
temp.dataprocess.each {
10 = current
10.wrap = <li>|</li>
}
temp.dataprocess.wrap = <ul>|</ul>
just some more fodder for ideas :)
vg Steffen
More information about the TYPO3-dev
mailing list