Drupal Questions & Answers

Ask and answer Drupal related questions! No question too simple or complex!
davezen's picture
Asked by on Mon 14th Sep 2009
in View how to link Taxonomy term to MY view (and not to taxonomy/term ? so [term_name1] > "display_view/term_name1" [tid] don't run

SUMMARY :

I have a view where I need to replace the term link “taxonomy/term” by my view link, because the view uses arguments to find content with terms

how can I put in link argument the term which is display :
[term_name1] > link “display_view/term_name1”, [term_name2] > link “display_view/term_name2”

I used [tid] field to put argument in link
display_view/[tid]
but it only display the first term, and not the real term (for example if multiple taggs it only display the first) and put all the terms in one single link :
[term_name1 term_name2] > link “display_view/term_name1”

so why [tid] or [tid_1] don’t run ? is there another field, or do I need php ?
really need help ! :)

DESCRIPTION :

Hello, I made a view table to display store content
it display : user name, title, taxonomy term to type (book, disc…), taxonomy term for taggs (subject of objects)

for example :

USER | TITLE | TERM TYPE (only one) | TERM SUBJECTS (taggs)
user1 | James Brown disc | disc | soul jamesbrown
user2 | rolls book | book | cars rolls travel

so I display different types of terms
and in subjects it can have a multiple because it’s taggs

I use arguments so it can have display for example only store from an user, or from an taxonomy (for examples only the disc, or the disc about soul)
so I can link display_view/argtermtype/argtermsubject
(I separate the type and subject)

MY NEED :

what i want is the terms of the view don’t redirect on taxonomy/term but on my view

so I have to :
change the link of terms in view to redirect on display_texts/all/all
replace [all] with the [term] argument

MY PROBLEM :

I can’t have the right field of terms displayed in the links of terms

in fields, I :
> checked “Output this field as a link”
> put the link “display_view/[tid]” for term type and “display_view/all/[tid]” for term subjects
> NOT checked “Link this field to its term page”

what it does :
[tid] put in link FOR ALL THE LINE the SAME TERM
and it put all the terms in one single link !

that’s to say, it creates the links :
USER | TITLE | TERM TYPE (only one) | TERM SUBJECTS (taggs)
user1 | James Brown disc| [disc] > display_texts/disc (ok !) | [soul jamesbrown] (BAD only one link!) > display_texts/all/disc (BAD it’s not the new term !)

what I need :
USER | TITLE | TERM TYPE (only one) | TERM SUBJECTS (taggs)
user1 | James Brown disc| [disc] > display_texts/disc| [soul] > display_texts/all/soul [jamesbrown] > display_texts/all/jamesbrown)

MY QUESTION :

so
> how can I put in argument the term which is display ?
I try things like [tid_1] but doesn’t work
is there any list of fields somewhere ?
or do i have to use php code ?
> how to separate link terms ?
if I check “Link this field to its term page” links are separate but it replace my link by “taxonomy/term” link

think’s in advance for any idea !

Commenting on this Drupal Question is closed.