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

Anja Leichsenring aleichsenring at ab-softlab.de
Sat Aug 17 13:49:49 CEST 2013

On 08/17/2013 01:29 PM, Christian Weiske wrote:
> 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" />

You have a typo, use:

<input type="text" id="t3-username" name="username" value=""
  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!

f is automatically loaded, you must not do this.

Greetz Anja

More information about the TYPO3-team-core mailing list