Dibatalkan

Drupal6 Passing Term ID attached to node to View as argument

<I have 4 taxonomy vocabularies>

Vocabulary A,B,C: each of them has around 1000-2000 terms and all of them are hierarchical taxonomy (2 depth e.g. parent-child)

Vocabulary D: has only around 10 terms (no hierarchy)

All the nodes of one content type is tagged with multiple terms of Vocabulary A,B and C. And only one term of Vocabulary D

<I have 2 types of Views>

View-type-1:

It's a "Node view" directly printed on [url removed, login to view]

with <?php print views_embed_view('view_name', 'default', $args); ?>

The Viws has a field "Taxonomy:Term" with argument "Node: Nid"

So when viewing a node the terms attached to the currently viewing node are displayed.

Each of vocabulary A,B and C has this View-type-1 (just one vocabulary per View-type-1)

This is somethig similar to the Drupal default taxonomy links on node but I'm using Views to display hierarchical taxnomy nicely.

View-type-2:

It's a "Node View" with a page display(with URL) which has 2 arguments of taxonomy term ID in its URL.

It looks like this:

[url removed, login to view](term_id_argument_1)/(term_id_argument_2)

(term_id_argument_1) is a taxonomy term id of vocabulary either A or B or C

(term_id_argument_2) is a taxonomy term id of vocabulary D

<What I need to achieve >

-example taxonomy terms-

Vocabulary A --- 100,200,300,400,500,600,700

Vocabulary D --- 1,2,3,4,5

-example case 1-

A node is tagged with 100,200,300,400 and 1

On the node view page

when users click the term name of tid= 100 (View-type-1 printed on node)

it takes them to [url removed, login to view] (View-type-2 URL)

when users click the term name of tid= 200 (View-type-1 printed on node)

it takes them to [url removed, login to view] (View-type-2 URL)

-example case 2-

A node is tagged with 300,600,700 and 3

On the node view page

when users click the term name of tid= 300 (View-type-1 printed on node)

it takes them to [url removed, login to view] (View-type-2 URL)

when users click the term name of tid= 600 (View-type-1 printed on node)

it takes them to [url removed, login to view] (View-type-2 URL)

<What I have tried so far>

After reading this article

[url removed, login to view]

I tried the method using outputting the field of "View-type-1" as an argument in "View-type-2".

But this could work only if the URL of "View-type-2" is with just one argument like [url removed, login to view]

I'm guessing it can be done if "Output this field as a link" of "View-type-2" is php input format.

Any methods are welcome please feel free to contact me if the description is not clear enough.

Thank you.

Kemahiran: Drupal, PHP

Lihat lebih lanjut: term argument views drupal, term name tid drupal6, drupal6 view nodes tagged, id me, has attached, it vocabulary, tpl, taxonomy, s attached, node, nid, id, dustin, drupal views taxonomy, drupal view, field type drupal, drupal page arguments, drupal print, view drupal, multiple node, drupal content type page, views php drupal, drupal node page, node content type, viws

Tentang Majikan:
( 5 ulasan ) Koto-ku, Japan

ID Projek: #1549054

4 pekerja bebas membida secara purata $42 untuk pekerjaan ini

EyeFish

Waiting to serve you. Thanks.

$50 USD dalam sehari
(50 Ulasan)
6.5
Instantsolutions

Drupal masters here. Please check our drupal reviews and lets start to get quality work. Thanks

$49 USD dalam 0 hari
(64 Ulasan)
6.2
binhdigipro

Hi I can do it!

$30 USD dalam 0 hari
(27 Ulasan)
5.4
eleonel

Sure, I can do it

$40 USD dalam sehari
(4 Ulasan)
2.6