[TYPO3-extbase] Own ViewHelper and ObjectStorage results in #1273753083: Cannot cast object of type "TYPO3\CMS\Extbase\Persistence\ObjectStorage" to string

Manfred Rutschmann - VOLUMEN Werbe-/Internetagentur rutschmann at agentur-volumen.de
Thu Sep 19 07:54:19 CEST 2013


Hey Guys,

on TYPO3 6.1.3 i have a strange problem. I cant pass object storages as a argument to my own viewhelper. What i do:

copy the for viewhelper in Class/ViewHelpers/ForViewHelper.php
change the namespace to namespace VOLUMEN\Collaboration\ViewHelpers;
put {namespace cn = \VOLUMEN\Collaboration\ViewHelpers} in my template

and go on with this:

<cn:for each="{branchsection.branches}" as="branch">
							
</cn:for>		

does not work...

this works:

<f:for each="{branchsection.branches}" as="branch">

</f:for>

It's the same code, my view helper is a clone from the fluid view helper, but it throws the exception above. Thats strange...

Any idea how to geht this to work?

Many Thank,

regards Manfred




More information about the TYPO3-team-extbase mailing list