I'm building a rather heavily themed view for a design portfolio on a new site. For each "Portfolio Piece"-type node, the view displays the associated image, node title, body, and a list of all taxonomy terms associated with the node (as tags, and each node has at least three). Using arguments and a standard Drupal menu next to the view, the user can filter the view's results down to one taxonomy term. Right now, I have the terms set to link to their own Drupal taxonomy term page (e.g. taxonomy/term/8), but I'd like to be able to keep the user within the portfolio view when they click on a term. Therefore, I want to be able to output each individual tag as a link to the portfolio view with itself as the argument, like this:
Tags: healthcare [links to example.com/portfolio/technology, where technology is an argument passed to Views], Acme Hospital [links to example.com/portfolio/acme-hospital], brochure [links to example.com/portfolio/brochure]
I already tried using the "Output this field as a link" option with a path of portfolio/[tid], but that just gives me one giant link like this: Tags: healthcare, Acme Hospital, brochure [links to example.com/portfolio/healthcare, Acme Hospital, brochure]. The other method I tried was using the Taxonomy: Term field, and while outputting that as a link works correctly, it only outputs one term for each node.
Is this even possible (with or without the case transformations like Acme Hospital to acme-hospital)?
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | tax_test_view_export.txt | 3.21 KB | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) commentedI setup a test view to see what was happening and got the same results as you described. I did, however, manage to use the 'Grouping field' option to group node titles together when using the 'Taxonomy: Term' field, effectively giving the output you want (one node title, followed by terms that link to themselves).
I've attached the view export so you can see exactly what I did. Hope that helps.
Comment #2
tobey_p commentedSubscribing
Comment #3
peterjmag commentedThanks for the view, BWPanda! I'm still playing around with it (and this issue in general), but I stumbled across something that might be helpful, so I figured I'd cross reference it here... The Taxonomy Redirect module
I haven't even downloaded the module yet, but its description seems to match what I want to do (albeit in a slightly roundabout way). Once I get a chance to install it and mess with it, I'll post back here.
Comment #4
Anonymous (not verified) commentedMarking as fixed.