[TYPO3-UG Dutch] fluid cobject alias probleem

Frans Saris franssaris at gmail.com
Mon Feb 16 12:07:58 CET 2015


Hoi W-P,

Ik begin zoiets meestal door de korte schrijfwijze eerst zo eens te testen
buiten de alias viewhelper.
Als het geen printbare waarde is zou je dit tussen <f:debug></f:debug>
kunnen zetten.

Waarschijnlijk is het een escape foutje.

{({newsItem.allRelatedSorted->f:count()} -
{itemIterator.index}) -> f:cObject(typoscriptObjectPath:
'lib.calc')}

Gaat denk ik niet werken, probeer eens:

{f:cObject(typoscriptObjectPath:
'lib.calc', data:' ({newsItem.allRelatedSorted->f:count()} -
{itemIterator.index})')}

Voor jou use-case zou de alias trouwens overbodig zijn, {amount} kun je
volgens mij vervangen door bovenstaande.

Gr. Frans
Op 16 feb. 2015 09:04 schreef "drs. ing. WSM Perquin" <perquin at yniverse.nl>:

> Beste,
>
> Zit er al een tijd op te stoeien, maar ik krijg het niet werkend:
> Het fluid cobject werkt:
>
> <f:cObject typoscriptObjectPath="lib.calc"
> data="({newsItem.allRelatedSorted->f:count()} - {itemIterator.index})"
> />
>
> Als ik heb wil gebruiken inline in een alias dan werkt hij niet.
>
> <f:alias map="{amount: '{({newsItem.allRelatedSorted->f:count()} -
> {itemIterator.index}) -> f:cObject(typoscriptObjectPath:
> 'lib.calc')}'}">
>    <p>There are {amount} records in database</p>
> </f:alias>
>
> De foutmelding die ik dan krijg is:
> "Oops an error occurred!"
>
> Wie kan me helpen?
>
> mvgr
>
> W-P
> _______________________________________________
> TYPO3-UG-Dutch mailing list
> TYPO3-UG-Dutch at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-ug-dutch
>


More information about the TYPO3-UG-Dutch mailing list