[TYPO3-UG Dutch] fluid cobject alias probleem

drs. ing. WSM Perquin perquin at yniverse.nl
Thu Feb 19 10:53:59 CET 2015


Hoi Frans,
heb van alles geprobeerd, maar het is denk ik toch echt een bug in alias.
Heb het met een condition opgelost en dan gaat het ook allemaal prima.

Bedankt voor het meedenken!

W-P

Op 16 februari 2015 12:07 schreef Frans Saris <franssaris at gmail.com>:

> 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
> >
> _______________________________________________
> 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