Hi
I am using Drupal 6 and Views 2.
I am building CD collection website and I want on my CD album page in the block to display 'more albums of the same artist' (because obviously artists have multiple albums).
On my album page i use taxonomy terms like artist, album, year relase, music type etc.

But I cannot manage to pass argument in my view to the block.
I found comment like:

For argument "Taxonomy: Term Id"

Set "Action to take if argument is not present: " to "Provide default argument"

Under "Default argument type:" select "PHP code", if this option is not available enable the "PHP filter" module.

In the text box (if the path is taxonomy/term/tid) add return arg(2);

so something like
if term = artist
display in the block
,,,,i dont know, i'm struggling with PHP code

pls help

Comments

grigori’s picture

what is the php code for (if the path is taxonomy/term/tid) add return arg(2); ??? pls

markabur’s picture

you are on the right track, look at this discussion:

http://drupalsn.com/learn-drupal/drupal-questions/question-2650

grigori’s picture

again, this not working!!! doesnt read peoperly my taxonomy
if i have in node: robbie-williams
but tax is : Robbie Williams