I just want to display the tags assigned to a node. What code do I need to use to do that?

Thanks!

P.S. My search for "display tags" doesn't bring up any relevant information on how to display tags.

Comments

zilla’s picture

if so, there should be a block for the node's own tags which you can simply throw up in content via a block and it will only display for nodes because it only shows tag for individual nodes...

nevets’s picture

In what context, most themes default node.tpl.php already displays the tags.

jmlavarenne’s picture

And that would be print $terms in node.tpl.php

cklester’s picture

Okay, I see that in node.tpl.php, but I've assigned two tags to a particular node record and the tags aren't displaying.

I've got it working! :D

Thanks!!!

zilla’s picture

the cck block module can do this - and more - very flexible. i've been using it for tags/terms and so on, specific to nodes and node types...

cklester’s picture

I'm about to investigate that option... but I'm using 6.1, and there doesn't seem to be a stable release. Is that right?

zilla’s picture

to be honest, i'm using the most recent cck for 6.1 and knock on wood i've had no issues - this is also a hugely important module to the drupal community, and a lot of it will be in the core of drupal 7, so it's getting special love and care - also found that the modules for it (for d6 versions) also appear to be working quite well (like cck blocks, contemplate, etc)

in a worst case scenario you can uninstall, but i really do not think you'll have to do that.