[TYPO3-mvc] Standalone View and hidden values in forms e.g. [__referrer][@action]

Helmut Hummel helmut.hummel at typo3.org
Tue Dec 23 01:06:03 CET 2014


Hi Matthew!

Am 20.12.14 um 19:52 schrieb Matthew Colton:

> Everything is fine except the reservation form. The form itself is a
> partial that cannot be changed by the venues. Anyway, Extbase normally
> adds some hidden fields to a form e.g. "[__referrer][@action]". This
> doesn't work in the form. The values are always:

This will not work with a standalone view, as there is no controller 
context to properly render the fields you mention.

You should put move the form to a template of an action (let's say 
newResarvationAction), write TypoScript (e.g. lib.newReservation) that 
renders this action of your plugin and use the <f:cObject 
typoscriptObjectPath="lib.newReservation" /> to render your form in that 
partial.

Kind regards,
Helmut

-- 
Helmut Hummel
Release Manager TYPO3 6.0
TYPO3 CMS Active Contributor, TYPO3 Security Team Member

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the TYPO3-project-typo3v4mvc mailing list