[TYPO3-mvc] Fluid for, if and ObjectStorage; Extbase Conceptual

Thomas Allmer at at delusionworld.com
Wed Jan 19 10:50:13 CET 2011


On 19.01.2011 07:43, Georg Ringer wrote:
> Am 19.01.2011 01:37, schrieb Thomas Allmer:
>> output: 1, 2, 3,<<<--- howto get rid of this trailing comma
>> [...]
> always check the comments in the viewhelper file! you can find the files
> in EXT:fluid/classes/ViewHelpers/
> Example
> ---------
>   *<f:for each="{0:1, 1:2, 2:3, 3:4}" as="foo" iteration="fooIterator">
> [...]
> so you can use {fooIterator.isLast} to check if it is the last one

looks nice and easy... but "iteration", is not available in 4.4.6 :/
but I guess this can be fixed :p

>> is there any way I can check for the amount of elements that are stored
>> in an Array/ObjectStorage and use it in an condition.
>
> CountViewHelper ;)

dam it, am I blind? thx for the hint... works like a charm :)

>> 3) Conceptual Question
>> I have a "problem" something like this. The Domain Model consists of a
>> few Objects. To make it easier let's assume it's like the blog example.
>> Now what I need to do is, display a list of filters. These filters are
>> dropdowns with all items currently available. For example a list of all
>> tags. But there is no repository for tags, as it's usually not needed to
>> display tags only. So how to get all tags?
>
> If you want tags, you got a Tag Model and you need a Tag Repository.

ok, more or less what I thought :p

thx for your time and help :)
-- 
+---------------------------------+-----------------------------------+
| Thomas Allmer                   |   http://www.delusionworld.com    |
| E-mail: at at delusionworld.com    |   phone: +43 699 16217064         |
+---------------------------------+-----------------------------------+


More information about the TYPO3-project-typo3v4mvc mailing list