Forums / Developer / Object status / Comment66757

Author Topic

Marko Žmak

Sunday 20 March 2011 1:10:00 pm

Comment66757

Logically, if the object states names are displayed in the admin interface under object details, then they should be fetchable in templates...

What you are looking for is "allowed_assign_state_list" property, try this:

{$node.object.allowed_assign_state_list|attribute(show)}

To narrow down your search through all thoose properties and arrays, here's an example of what you need:

{$node.object.allowed_assign_state_list[0].group.states[0].current_translation.name}

You'll figure out the rest...

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth