[TYPO3-ect] as*() functions
Daniel Pötzinger
operation-lan at gmx.de
Sun Oct 7 23:10:36 CEST 2007
All the as* functions gets there content from ->get() method of the
object. And therefore needs the fields in the Iterator of the view.
But what if I want to use that functions also on other content. For
example imagine you have a view which renders a product. The product
itself has many list properties like "articles", "images", "downloads",
"attributes" ...
All this list properties are called in a PHP view directly.
Would be cool if I can use something like:
$downloads=$this->get('downloads');
foreach ($downloads as $download) {
?>
<h3><?php $this->printAsRaw($download['title']); ?></h3>
...
But thats not possible now - I am forced by the lib/div framework to
build nested views if I want to use it that way. But that is overhead in
this case in my opinion.
What do you think?
More information about the TYPO3-team-extension-coordination
mailing list