Path

ez projects / eztags / forum / general / tags not displaying


Tags not displaying

You need to be logged in to post messages in the forums. New users may register here.

Mark Blackmore

Member since:
22 February 2011

Posts: 2

Friday 09 September 2011 7:26:33 pm

Hi
How can we display tags in the template?

Thanks
Mark
Up

Edi Modrić

Member since:
22 January 2009

Posts: 76

Friday 09 September 2011 7:35:26 pm

Hi Mark,

it depends on what template do you want tags to be displayed in.

If you want them for example in full view of a node whose object has eZ Tags datatype, then you can use:

{attribute_view_gui attribute=$node.data_map.my_tags_attribute}


This will show tags that are related to the object with my_tags_attribute attribute.

If you want to display tags no matter with what object are they related, you can use fetches like:

{def $tags =fetch(tags, list, hash(parent_tag_id, 0))}

Certified as an eZ Publish advanced developer on Sep 7th 2012
Certified as an eZ Publish basic developer on Jul 16th 2010

@: http://twitter.com/emodric
www: http://www.netgenlabs.com

Up

Mark Blackmore

Member since:
22 February 2011

Posts: 2

Sunday 11 September 2011 12:49:09 am

Thanks!
Up

You need to be logged in to post messages in the forums. New users may register here.