taxonomy

Drupal » Print taxonomy terms

Hi all, I'm theming a node-MyContentType.tpl and I would like the ability to 'print' only a specific Vocabulary. In other words, I would like something like that: <Title> <Vocabulary [1]> <Body> <Vocabulary [2]> I think it should be fairly easy, but I'm struggling.... Ideally, I would love to pass arguments to: print the "label" ...

Is there a way to get distinct taxonomy terms in drupal views?

I am trying to get a list of distinct taxonomy terms in drupal using views2. It seems it shouldnt be that big of a problem, however when i select the taxonomy:all terms, and select what vocabulary to limit to i get duplicates. The "distinct" option in drupal does nothing, and i cant find anything else that groups it together. If anyone k...

Intelligent Keyword Searching

Hi, I have a taxonomy vocab assigned to a content type in Drupal 6. I've then exposed (using "is one of") it as a field in views which allows a user to search via keywords. The problem is when it runs the query it is first referencing the term so instead of using a like statement it looks the term up in the taxonomy table and brings ba...

Is the job title of "Webmaster" an anachronism?

I've worked with a few people who have the word "webmaster" either as part of their formal job title or as their actual title. The type of work these people do does relate loosely to the web, but I suspect better, more appropriate titles that more accurately reflect the job function would make more sense. Is the "webmaster" moniker sti...

How do I create a node count for each each category term in Drupal?

I want to create a list of category terms (contained within a block), with each term to be followed by a count of the number of nodes with that term, e.g.: Cats (5) Dogs (4) Elephants (2) There are a number of modules that create whole lists like this dynamically, but I've found they all have drawbacks for my purposes. I literally jus...

Content Taxonomy along with Conditional Fields

I'm still young at Drupal.So please correct me wherever needed. I have a requirement wherein I want my content type to have my own fields (achieved with CCK), then I want one of the fields to be a selectable drop down and each drop down value should actually categorize them so that each type can come on separate page. This I managed wit...

drupal: hide single taxonomy term in particular view display

Have a documents content type, with three taxonomies applied to it. Taxonomies are document type (form, policy, other), document group (hr, i.t., training, project specific, etc.), and a free-tagged project name (for when document group = project specific). Have single view displaying all documents, segregated by tabbed page displays: ...

Sorting grouped nodes by taxonomy term

Ok, here's the problem: I have a list of contacts, which i have created in views, that are grouped by taxonomy terms like so: (term:) Staff: (node:) John Doe [email protected] (node:) Jane Doe [email protected] (term:) Management: Fred Doe [email protected] and so on... As it is now, i have no idea w...

How to delete terms within Drupal taxonomy module?

If terms (admin OR user created) are duplicates, I don't see a way to delete them from within the Drupal browser interface. This becomes a problem during, say, adding products to an ecommerce site that breaks their products up into categories. The person adding the product sees multiple duplicate categories (which are terms within a Voc...

Assign a taxonomy term to a view instance

Is there an easily managed way we can assign a specific taxonomy term to a specific instance of a view? We're using the callouts module for Drupal, and it works great for nodes/pages we have in our site. But we have a handful of Views that are displaying as a page, but we cannot assign a specific taxonomy term to a specific instance of ...

Drupal: How to use Taxonomy to implement my idea

I have a bunch of Bout nodes. Each Bout is associated with a school, and a player who goes to that school. I am thinking it will work to do this association through taxonomy. (The schools and players are drawn from a list that remains fairly constant over time.) One idea is to have the school name be the parent term, with players as chi...

How can I have multiple fields with the same taxonomy on Drupal's node creation form?

My designers want to use the same taxonomy for three different purposes. On the node creation form we'd have three different fields where you're choosing from the same set of terms. Ideally, one field would enforce a single choice (and be hierarchical), and the others would allow multiple choices with tags. Any thoughts about how to acco...

Thesaurus and taxonomy library for python

Can you recommend some good python library to get thesaurus and taxonomy of a give word? Synonym: >>> print get_synonym('image') ['picture', 'photo'] Taxonomy: >>> print get_taxonomy('baseball') ['sports'] ...

drupal taxonomy term path to return alias

Taxonomy term path: http://api.drupal.org/api/function/taxonomy_term_path Returns the unaliased path. I used pathauto to give the term alias, how can I return the aliased version? Thanks. ...

View with products linking to product pages with Taxonomy

Hi, I’m kind of in a jam with a website I’m trying to create for use in a technical department which will server as a information database for the repair engineers to find information about products they are working on. This will include testing procedures, product configuration pages, customer specific information per product, software ...

How to find "related items" in PHP

Hi, we often see 'related items'. For instance in blogs we have related posts, in books we have related books, etc. My question is how do we compile those relevency? If it's just tag, I often see related items that does not have the same tag. For instance, when search for 'pink', a related item could have a 'purple' tag. Anyone has any ...

Structuring RSpec file structure and code for tests with very large coverage?

I've just started looking at a project that has >20k unit tests written in Rspec (the project itself isn't written in Ruby; just the test cases). The current number of test cases is expected to grow dramatically in the future, as more functionality is added. What's already happened (over an extended period) is that RSpec started out be...

Drupal join on taxonomy terms

I have a Drupal setup like this: Content type: Apartments Vocabulary: Areas, that can be used with Apartments. Content type: User profile, with a Content Taxonomy Field for Areas so users can select what areas they are interested in. I would like a view that shows all the user profiles that matches the apartments in their area. A "Us...

How to tag and categorize Life, the Universe, and Everything?

Jokes aside, I am trying to build a tag hierarchy for a library of icons that could contain potentially anything. The problem is how to make clear and simple hierarchy of (most) objects? I am not trying to make super specific categories, just to help users with searching (if I can narrow down 10k icons into categories of 100s that should...

algorithm to get result like taxonomy_get_tree(). But retrieve only non empty terms.

Hi, I need to get an associated array of terms in drupal that has node associated with it. However, I can't seem to figure it out the appropriate algorithm. What I want is something like taxonomy_get_tree(). But, only term that has associated node with it. ...