[TYPO3-core] Fluid translate view helper in backend login form

Christian Weiske cweiske at cweiske.de
Sat Aug 17 13:29:11 CEST 2013


Hi,


I'm trying to split off the OpenID code in the backend login form.
In the process, I'm trying to use fluid for rendering the openid form.

For that, I create a TYPO3\CMS\Fluid\View\StandaloneView class,
call setTemplatePathAndFilename() and render().

Unfortunately, the f:translate view helper call does not seem to work -
it's not parsed at all and just output like normal HTML code. The
generated/rendered HTML contains:
> <input type="text" id="t3-username" name="username" value=""
> placeholder="{f:translate(key='LLL:labels.username')}"
> class="t3-username" autofocus="autofocus" />

What do I have to do to make the view helpers work?


Btw, adding the namespace declaration on top of the file leads to
> #1224241246: Namespace identifier "f" is already registered.
> Do not re-declare namespaces!

-- 
Regards,
Christian Weiske


More information about the TYPO3-team-core mailing list