My goal is to display a nodes taxonomy in a list format in a block. I've been trying to use views, which I set up my field to display taxonomy terms:"my terms", and then I found some argument handling code that suppose to only display the taxonomy terms for that a specific node.
the code i put into the argument handling box:
if (arg(0) == 'node' && is_numeric(arg(1))) { return array(arg(1)); }
However, it is not working and all of my taxonomy terms are being displayed in the block, regardless of the terms within the node.
my example:
http://aimlessfilms.com/work/kings-vegas
The node taxonomy terms are shown underneath the title, and the block "project roles" displays all the terms in the "my terms" id.
Comments
SOLVED:
After spending nearly a day and a half looking for a solution, I've found one that appears to work so far.
Here are my steps to show a node's taxonomy terms within a block (using views of course).
1) Create a new view, check the box for "provide block", select "list view", and 1 node per block.
2) Under field add the Taxonomy: "your terms".
3) Under arguments add "node id", set the "default" option to "use empty text" and leave to rest.
4) Under arguments handling put in
--this will call the taxonomy for the specific node (although I have really no clue what it means..:).
5) Under filter add "node type" and select your node type.
6) Now just set up your new block under site building-->Blocks
Beginner to Beginner
~Wes
looks nice! just one
looks nice!
just one question before I would start using it: does it take the taxonomy terms away from underneath the post? or does this have to be disabled, and does the block then still show the taxonomy terms?
in any case: thanks a lot!
Joris