We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [taxonomy-terms]

"Taxonomy" refers to Drupal's content classification mechanism, organised into vocabularies and terms.

Filter by
Sorted by
Tagged with
1
vote
2answers
597 views

Show all terms of a vocaboulary

I have this function that I used in a similar situation (Drupal show all terms of different vocabulary) that prints the terms of a node with a corresponding parent (if applicable). In my template.php ...
5
votes
2answers
2k views

Fatal error undefined function taxonomy_get_tree()

I want to write a module that makes a select search form based on taxonomy terms. (with hierarchical select boxes) This is on drupal 7.0 and status is up to date. The form is made and Ajax is properly ...
1
vote
1answer
842 views

How to use Taxonomy Facets together with Apache Solr Multisite Search ?

This regards http://drupal.org/project/apachesolr_multisitesearch I'm trying to enable Multisite Search Facets (based on Taxonomies) for a few sites. The 'normal' multisite facets such as 'filter by ...
3
votes
1answer
1k views

Taxonomy & Views

How can I take a "Content Type" with a "Taxonomy Term" field... and use views to generate a list of content with that term via URL? I have a content type that has the basics (Title, Body) as well as ...
24
votes
7answers
15k views

Where do I find the vocabulary ID ($vid)?

In Drupal 6 I would go to the taxonomy section of my /admin and I'd be able to find the $vid (numerical) in the URL. In Drupal 7 (no doubt due to the introduction of terms as entities) the URL is no ...
0
votes
1answer
106 views

How to achieve a particular layout (view within a view, custom template, or ____)?

Say I had a site with travel destinations and I wanted to display a series of videos associated with each destination on a page below a description of the destination. The destinations and the videos ...
3
votes
1answer
1k views

Tagging separate files

I wonder if, and how, the following would be possible to tag each uploaded file with one or more tags and show these files filtered on their tag(s). I know it's possible to do this for nodes but have ...
4
votes
1answer
2k views

Views - currently logged in user problem

There's a taxonomy list labeled games-list that's used in both the content type named game and user field subscribed. Each game has exactly one of the terms from games-list selected, but a user can ...
4
votes
1answer
1k views

How do I get a node, or a taxonomy term URL knowing the node ID or the taxonomy term ID?

I need to render the full URL from a taxonomy term ID.
3
votes
1answer
4k views

How would I get taxonomy info using the taxonomy term ID, in order to theme it?

I need to be able to extract a taxonomy array and use it to create links.
5
votes
1answer
2k views

How does one create terms on hook_install if hook_taxonomy_default_vocabularies is used in the same module?

I'm attempting to create taxonomy terms in a module that provides the vocabulary needed to create these terms. The issue I'm having is the vocabulary is not available upon install. My module ...
8
votes
4answers
4k views

How can you sort taxonomy terms based on number of times used, in a view?

I'm creating a view that lists the top 10 most popular taxonomy terms (tags). Currently I have the view returning all the terms and I can limit the view to 10 but I can't work out how to order the ...
8
votes
2answers
13k views

How do I create an AJAX filter for a view?

I have created a page using Views and it works fine. I want to add an AJAX filter to this page to allow visitors to filter the contents based on PubDate or by Taxonomy/Vocabulary for this content type....
5
votes
2answers
2k views

Autocomplete term widget (tagging)

I was using the "autocomplete term widget (tagging)" as widget type for a term reference field. I found out that the when I set the maximum number of allowed values to more than one (i.e multiple ...
1
vote
1answer
426 views

Is there a module for creating a web directory like Dmoz?

I need to be able to organize different sets of content using the taxonomy. The user can visually click through the different layers of the directory and find what there looking for. I want to have ...
2
votes
1answer
857 views

How to output all taxonomy field values on a node in views?

How can I display all field values that are on the taxonomy terms that are applied to a given node? So say I have the following Vocab defined: Vocab name:Fruit Description:Fruit Categories w/ codes ...
3
votes
3answers
1k views

Filter by content type and shared taxonomy terms

I want to classify my content within the following categories: Technology International Politics Education Religion Sports They are shared among my content types (e.g. news, page). I want to create ...
9
votes
7answers
10k views

How can I filter the taxonomy terms by language?

I have searched a way to filter the taxonomy terms by language (as done for nodes), but I didn't find any way to do it. Does the Views module support that filter in taxonomies too, or just in nodes? ...
11
votes
2answers
6k views

Converting Term names with special characters to Term ID's in Views

I have a view where I want to use multiple termID's as arguments. I want to use a term name from the url and convert it to a termID. I've managed to do this easily enough and it works with simple 1 ...
5
votes
1answer
2k views

Term reference with filter

I wonder if it is possible to add a term reference field with just a subset of the available taxonomy terms. Let me explain. I have a taxonomy vocabulary with a structure like this: - term 1 - term ...
2
votes
2answers
3k views

How to display translated term names in exposed form in block

So I've got a views page displaying a list of nodes from specific content type. This view has filter form exposed in a block. Some of the filters in the form are vocabularies. I'm using the BEF ...
7
votes
3answers
3k views

Display taxonomy field in node display

I created a vocabulary where terms have an image as additional field. I want to show the image instead of the term name in the node page. How can I do this? In Drupal 6.x, I would load the term and ...
3
votes
2answers
1k views

How to do taxonomy based css styling using template.php?

I'm looking forward to implement taxonomy terms based CSS styling; especially for the body tag which I want to add the current terms. Here is what I have so far: function _phptemplate_variables($...
4
votes
2answers
3k views

Multiple values in creating a new field instance

This is the code I actually have: $instance = array( 'field_name' => FIELD_PROJECT_TAGS, 'entity_type' => 'node', 'label' => $vocabulary->name, 'bundle' => '...
6
votes
2answers
474 views

Is Drupal 7 a good fit for my site?

I started creating my site in Wordpress 3.1, and I have hit a speed bump. I am considering switching to EE or Drupal 7, in hopes of achieving my vision of the site. The problem I am having is ...
31
votes
5answers
30k views

Views and node count for taxonomy terms

How can I display the node count values for taxonomy terms in Views? with sorting the result list in descending order of node count.
2
votes
1answer
1k views

Detect the taxonomy term(s) of a node from within a template file

I have a Drupal 7 site with a content type of event. I have a taxonomy called "event types" that has 5 options (Party, Conference, Meeting, etc) I have one template named node--event.tpl.php for ...
1
vote
1answer
195 views

Grant access to CCK referenced nodes

I have one content type 'object' that references one or more nodes of content type 'image'. I'm granting access to nodes with TAC Lite: a user can view only content with a particular term. Since the ...
1
vote
1answer
269 views

What is the access record “content_access: all”? This is overriding my taxonomy access module

I have had problems with my permissions ever since I last rebuilt my permissions. (I did this after working on user reference permissions. This field has no user reference on it) The taxonomy ...
2
votes
3answers
151 views

Best practice to have a 'category' fields where admin can choose wich voices the user can choose

I have a content type that needs a 'category' field; this can both be a taxonomy vocabulary or a text field (with the select widget), it doesn't really matter. (I won't have more then 5-6 voices at ...
2
votes
2answers
214 views

Never show the term name if the user has no permission to view the term

I use a vocabulary to freetag bookmarks I post to my site, and I want to hide all the terms (also most nodes; most or all, I don't care). With TAC module I use following setting for a start: global ...
4
votes
3answers
10k views

Taxonomy menu with custom path for taxonomy terms

I am trying to make a taxonomy menu using the Taxonomy Menu module with a custom path for the taxonomy terms. Instead of /taxonomy/term/tid I want /proj/!tid (or ultimately /proj/!term-name but I'll ...
3
votes
1answer
4k views

Are taxonomy fields exposed to views?

I am trying to create a view of nodes that have a taxonomy reference field. I can get the taxonomy term but do not see the taxonomy fields that I've created exposed to views. Google searches do not ...
7
votes
2answers
14k views

How do I access a taxonomy term's field(s)?

Specifically, I'm trying to access a field called 'logo' inside of a couple taxonomy terms (Tweet and Wikipedia edit), which is an image. I have a news feed on the front page of my site, and for each ...
3
votes
1answer
564 views

How to order a node's taxonomy terms hierarchically?

Are the terms in a node's taxonomy array ordered hierarchically by default? If not, what is the most efficient way to do so?
2
votes
3answers
4k views

Display the title of related nodes from taxonomy in block

How can I display the title of related news in a block shown in node page? For example, I create the content type "news", and add "news" nodes that have taxonomy terms taken from the same vocabulary; ...
1
vote
1answer
324 views

Show related Taxonomy list if created

I have created the following construction. If a student choose option A with the if construction the following step in the wizard is the internships with medicine domain A, but what if the school ...
8
votes
6answers
7k views

Taxonomy breadcrumbs

I'm using the core taxonomy module for blog tags but when on a tag's page can only get the breadcrumb to appear as 'Home', whereas I'd like it ideally to be 'Home > Blog > #Tag#'. I'm using custom ...
3
votes
2answers
144 views

How to install a taxonomy system that represents records in another high-volume, non-content-node table?

Here's the scenario: A writer about celebrity gossip posts a node (article) on a Drupal website. I have a module that scans the article and automatically creates taxonomy fields based on celebrity ...
3
votes
2answers
315 views

How to handle blog tags in a contrib theme?

In blog or blog-like sites, taxonomy is often used for tags and categories. In Drupal 6, node.tpl.php files could use the $taxonomy variable if they needed access to an array of unrendered taxonomy ...
7
votes
3answers
1k views

How can I automatically add taxonomy terms to a page's <meta> keywords in the HTML?

When Taxonomy is used for "free tagging", it basically becomes keywords for the content. From an SEO perspective, it would be great to automatically include these taxonomy terms in the HTML tag for ...
15
votes
7answers
3k views

Exporting Taxonomies to code

I'm looking for a way to export Taxonomy vocabs and their associated terms. So far I've found and tested: Taxonomy Export -- Exports to code using features but doesn't import. http://drupal.org/node/...
6
votes
3answers
4k views

Duplicate taxonomy terms from view

So I haven't yet been able to find a solution to this without using a preprocess function to check for duplicates or just using the 'tagadelic' module.. it'd be nice to get some closure. How do I ...
5
votes
1answer
4k views

How to create relationships between Taxonomy vocabularies?

I'm trying to build a site with similar content conventions to Craigslist. The problem is, I don't really know a good way to create multiple vocabulary relationships in drupal. Here's the end result I ...