Jump to content

access a related page templatefield's label in the current user language


froot
 Share

Recommended Posts

Hello Processwirers,

I'm trying to access a field's label in the current user language: 

$this->template->fields->skills->label // returns either "skills" or "Kenntnisse" depending on the language /en/ or /de/
$this->related_tutor->template->fields->skills->label // always returns "skills" no matter the language

The label for the field is set in different languages.
related_movie is a related page (aka "page field") and that related page is a user, i.e. uses a system template (– might that be the issue?)

Why doesn't this work for related pages?

 

Link to comment
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
 Share

×
×
  • Create New...