[solved] ListIt2 - get name of specific field definition
[solved] ListIt2 - get name of specific field definition
I know I can get the value of a specific ListIt2 field definition with {$item->my_field_alias}, but is there a way I can get the name of the field for a given alias?
Last edited by Cerulean on Mon Jul 21, 2014 7:42 am, edited 1 time in total.
Re: ListIt2 - get name of specific field definition
Your code is actually a shortcut to:
{$item->fielddefs.my_field_alias->value}
{$item->fielddefs.my_field_alias->name} will show the field name.
{$item->fielddefs.my_field_alias|print_r} will print the object so you can see what properties you can use/show.
{$item->fielddefs.my_field_alias->value}
{$item->fielddefs.my_field_alias->name} will show the field name.
{$item->fielddefs.my_field_alias|print_r} will print the object so you can see what properties you can use/show.
Re: ListIt2 - get name of specific field definition
Brilliant, thanks!


