Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 May 2006 at 17:58 UTC
Updated:
8 Feb 2011 at 18:23 UTC
Jump to comment: Most recent file
Comments
Comment #1
merlinofchaos commentedThis was more complex than I thought it would be; but it's now in there.
Comment #2
(not verified) commentedComment #3
mariagwyn commentedIt appears I have a habit of resurrecting long dead issues...
but where is this? I am looking for Vocabulary Name and can only find Vocabulary ID. Is it in 6.x?
Thanks,
Maria
Comment #4
mathis commentedHi,
Up, It would be great to have vocabulary name as an argument (is it really more complex than term name?).
Thanks!
Comment #5
doughold commentedI agree, this would be a big plus in my eyes. I am using faceted search and you have to break up your taxonomies into different Vocabs for it to work right (at least as far as I have figured out). However, I also need a secondary navigation process that will allow a user to pass the vocab id/name as an argument via a link generated by Views. It is strange in my view that you can read the Vocab ID as an argument, but you cant use the Vocab ID in any generated links under the Fields, only the vocab name. Please correct me if I am wrong about this as I will be very happy if this is already implemented!
Comment #6
frames commentedThis was supposed to be available one year ago! in Views 1.
Still not present for me in 6.x-2.3. Any chances to have it ported to Views2?
Comment #7
dawehnerdo you need the vobabulary id OR name, or it is enough for you to get just the name.
This second should be quite easy to write
Comment #8
merlinofchaos commentedPatches work better than complaining.
Comment #9
gphoto commentedis it in there or is it not? I'd really like to be using it right now but it doesn't show up in the latest release.
Comment #10
leanazulyoro commentedI don't see the vocabulary name filter in 6.x-2.6 and I don't see a submitted path in this issue, is this available or not?
Comment #11
Brian294 commentedsubscribe. I also need vocabulary name for creating arguments. do not see it there. only have:
Taxonomy: Parent term
Taxonomy: Term
Taxonomy: Term ID
Taxonomy: Term ID (with depth)
Taxonomy: Term ID depth modifier
Taxonomy: Term synonym
Taxonomy: Vocabulary ID
Currently using Views 2.6
Comment #12
dawehnerThats true. Its missing.
As alternative you could use Taxonomy: Vocabular ID and convert with validation php code.
Comment #13
eiland commentedsubscribe. And do you have an example php snippet?
I'm trying to make a vocabulary page, listing all terms so category/global terrorism/iraq
Now I need to make path aliases and change the vocabulary id into the term :(
aargh
Comment #14
AnnanFay commentedsubscribe. It's interesting to note that you can filter by vocabs but not vocab IDs!
Comment #15
dawehnerThere could be two ways to do this
a) provide the argument: vocabulary: name. Its trvial to code
b) provide a argument validation plugin, which converts the name to an id, so its faster to query.
Comment #16
sicapitan commentedsubscribe
Comment #17
devkinetic commentedsubscribing
Can anyone tell me where this would be defined? If someone can give me a file / line of say Taxonomy:Term Name's structure I will work on a patch for this.
Comment #18
dawehnerThere is a think which does this. Its easy, as i said :)
Comment #19
kingandyPatch works fine, though Views does complain that there's no 'help' defined on the argument...
Comment #20
dawehnerCould you write one?
Comment #21
kingandySure.
Comment #22
dawehnerI choosed another text, see the patch file
Comment #23
wjaspers commentedI dont have a CVS, any understanding of how to generate a patch in Windows, and the "Issue Queue Handbook" patch info wasn't very helpful; but, here's the code I created to use a Vocabulary Name as an argument, convert it to a vocabulary ID, and validate it against any number of vocabularies you may have.
This is basically ported code from taxonomy functions. I don't doubt there is room for improvement.
So far, I haven't been able to accept two (or more) arguments AND ignore the vocabulary arg if it isn't supplied--maybe someone knows what to fix....
Otherwise it has worked with minimal testing...
Comment #24
vood002 commentedI successfully applied this patch to views 6.x-2.11 and all appears to be working fine. Would be nice if it was committed (assuming no bugs anyone else has discovered)
Comment #25
dawehner#23 Please create a patch
#24 so #22 is ready to commited?
Comment #26
vood002 commentedI've done limited testing on #22 passing a single vocabulary name as an argument and it's worked without any issue
Comment #27
brenda003I created a patch for #23 before realizing #22 also provided a patch.
Comment #28
mrP commentedIts great that views comes with an out of the box taxonomy_term view. Is it possible to extend this to taxonomy_vocabulary as well?
Comment #29
mrP commentedA few other thought in this vein: the default taxonomy_term view allows for multiple taxonomy arguments (ie /taxonomy/term/1,2). This displays all nodes associated with term 1 and term 2. So given an example taxonomy (below), in order to see all nodes associated with term 10, term 12, and vocab 4 I would have to set a path equivalent to /taxonomy/term/10,12,16,17,...,50. The alternative would be a vocabulary id argument (which I admittedly have NOT figured out).
To make vocabulary arguments and these situations easier to manage, is it possible to add a 'Taxonomy vocabulary' validator?
Example taxonomy:
Vocab 1
- term 10
- term 11
Vocab 2
- term 12
- term 13
Vocab 3
- term 14
- term 15
Vocab 4
- term 16
- term 17
...
- term 50
Comment #30
jelo commentedCould you please provide an example how taxonomy_vocabulary does get created?
I am still trying to figure out how to build a vocabulary browser in views without the need to use an external module, a similar discussion is at http://drupal.org/node/476116.
I already use the standard taxonomy_term view, but would like to add the option for users to go up one level to see all terms in one vocabulary and to go up another level to see all vocabularies.
Comment #31
iamjon commentedchanging status.
has anyone actually tested this?
Comment #32
iamjon commentedre-read the post
based on http://drupal.org/node/62066#comment-3343542 changing status again.
Comment #33
esmerel commentedVocabulary ID and Name are definitely present in the 3.x line; this answers the original request. Any other issues or additions should be taken up in new issues/feature request, not by tacking more onto this one.
Comment #34
iamjon commentedclosing.
Comment #35
mrP commentedbeautiful. thanks for clarification.