Output label overridden in the template

Recommended Posts

Hi, I've a multi-language text field which label is overridden in the template to "Label English" and "Label Italian".

I'd like to output the overridden Italian version when accessing the link I tried the following without success:

// output a blank value

// get the error: "Error: Call to a member function getLabel() on string"

// output the not overridden, translated value

How can I output the label overridden in the template?



I ended up using:


Is it the correct way to get the overridden, translated label? Or is there some better?

  • Like 1

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.