[TYPO3-ect] Non-array data in lib/div
Daniel Pötzinger
operation-lan at gmx.de
Sun Feb 3 16:21:40 CET 2008
Søren Andersen schrieb:
> Hi
>
>
>
> I’m rewriting the list view of a plugin I have had made. In this view I have
> some links, but these links are in a category, and I would like to show the
> name of the category as the title for these links. How do I feed the
> template with a value, that I don’t need to iterate through? The same could
> be done with the number of links in this category.
Your View gets all Data from a model class - right? So just load or
offer every data you need in your model.
This depends how you read data from you model, probably your model has a
list of items - I would just load the category name and count also in
the items data in the model class.
More information about the TYPO3-team-extension-coordination
mailing list