Jump to content

Get field label by template


grigorisk
 Share

Recommended Posts

hi!
i'm trying to get the label of my field that i use in two templates with different name.
so i'm trying to get the label through the template.
so my code is
echo $templates->get("home")->fieldgroup->get("text")->label;

but it gives me the general field label not that i'm using for the home template

 
any idea?
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...