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
1answer
101 views

Add a class to a div depending on which term was clicked

Since clicking on a taxonomy term opens a page showing all pages using that term, how do I identify which term was clicked so I can add a unique icon to each one? What do I type in template.php so I ...
1
vote
1answer
1k views

Adding a new taxonomy term from a custom content type field

Is it possible to automatically add a new taxonomy term (related to certain vocabulary) from a field in a custom content type; so when submitting a new content entry (related to that custom content ...
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($...
1
vote
1answer
159 views

Force redirect if a valid taxonomy term is not at the start of the URL?

As a follow on from this question I am trying to prepend all URLs on the site with a taxonomy term. The term itself is handled by a custom module for the most part, however elements of the site such ...
5
votes
1answer
359 views

Site building process: what is the relationship between CCK, Views, Panels, Blocks and Taxonomy?

A beginner question. I need to understand the relationship between the top Drupal structure modules: CCK, Views, Panels, Blocks and Taxonomy, i.e., when building a website, what is the general steps ...
1
vote
2answers
395 views

Drupal 6: only displaying select vocabularies?

I use two vocabularies, one for tags and one which determines where a view will be displayed. Can anyone tell me how I could output the terms of my former category while hiding the ones in my latter ...
2
votes
1answer
928 views

Terms for cities and state to build dependent selects

I'm adding a "City" field to a content type. I need it to be 2 dependent select lists. I mean, the user will select a state in the first select and the second select will be populated with the cities ...
1
vote
0answers
753 views

Is it possible to add taxonomy filters to the standard advanced search?

I wonder if is possible to add select boxes from my taxonomy to the standard Drupal 7 advanced search form. I'd like to search for document containing the word "test" and which have the word "High" in ...
0
votes
1answer
140 views

Is it correct to use taxonomy_term_is_page() in this code?

I am trying to get some content to show up when some conditions are verified: if I am on a certain page, the content will be shown; differently, the content is blank. Everything looks correct; I just ...
1
vote
0answers
831 views

The taxonomy term field token doesn't show in Views

I am trying to call my taxonomy field token in the Views header. I added the relationship "Content: Taxonomy terms on node," and then added the taxonomy term in the fields; I went to the header ...
2
votes
1answer
2k views

How to create different Views pages for different taxonomy vocabularies?

I have two vocabularies that require two different taxonomy view pages. For example, I have vertebrates with terms fish, cats and snakes and invertebrates with sea cucumbers, spiders and snails. I ...
1
vote
1answer
1k views

Duplicated content shown in a view using a relationship

I am using a view that has a contextual filter ("Content: Has taxonomy term ID") and a relationship ("Content: Taxonomy terms on node"); for some reason, I keep getting duplicated content. In the view ...
1
vote
2answers
601 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 ...
1
vote
2answers
3k views

getting node items by taxonomy

I can get a list of node items by content type, using the following query: $query = db_select('node', 'n'); $query->condition('n.status', NODE_PUBLISHED); $query->condition('n.type', '...
1
vote
1answer
253 views

very bad thing of output the vocabulary in drupal 7

I created four vocabularies for the "article" content type. I want to output the vocabulary which belongs to the node; when I used print render($conetent['field_vocab']), it output the vocabulary, ...
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 ...
1
vote
1answer
994 views

How do I get the name and URL alias of a vocabulary using only the vid?

I need the URL alias of the vocabulary, not the term and not the machine name; I need the name that appears to the user.
1
vote
1answer
1k views

Getting the taxonomy parent term as Views argument

I am trying to get a taxonomy parent name with this code; when I put 1 as the argument, I keep getting the ID, but when I try using 2, I get a error. It should wor,k but it keeps throwing the error ...
1
vote
1answer
199 views

Joining Taxonomies in an Ubercart Views into a single Field Group (D6)

I have a view for a taxonomy term filtered by the argument. A particular product has more than one taxonomy term related to the individual node. This works for only all nodes that have just one ...
0
votes
1answer
214 views

What are some ways to implement a hierarchical taxonomy page structure?

I'm currently trying to decide how to architect a client's site, and they need to have the need to have a hierarchical page structure. This must be able to go at least 3 levels in depth and have the ...
1
vote
1answer
242 views

Can 'terms' be shared across 'vocabularies'?

I think I might have a fundamental misunderstanding of how taxonomy works in Drupal. I've set up some vocabularies, such as 'accommodation', 'things to do' and 'eating out'. Within those, I've added ...
1
vote
1answer
400 views

Building a view with arguments from a search select list

I have a block with custom search options based on taxonomy terms (hierarchical dropdown). When you submit the form, it renders the ID of the taxonomy terms. I want to have a query in another block on ...
1
vote
2answers
233 views

Similar By Terms without vocabulary

Other modules doing well but not actively developed. How to make Similar By Terms works without vocabulary?
0
votes
1answer
924 views

Custom taxonomy; link with two content types

I've successfully created a new content type ("my_type") and added a taxonomoy into it. How can I combine this new taxonomy also with the default content type "post", so that I can select it in the ...
2
votes
1answer
837 views

Help with content structure of a typical art gallery website

As a way of learning a bit more about how Drupal 7 works, I'm trying to replicate the features of a local art gallery website. I'm having a few problems setting up the content types so I was hoping ...
3
votes
1answer
619 views

Limit the creation of tags

I wish to create a taxonomy where the administrator users limit which terms can be tagged. Suppose I have a vocabulary containing the following terms: Football Golf Snooker I want the tag ...
2
votes
2answers
216 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 ...
0
votes
1answer
876 views

Get content based on taxonomy

I can't figure out what I am doing wrong, as my block isn't showing up with the content from the taxonomy. I am trying to create a block that shows the content based on the taxonomy; I made a path on ...
4
votes
2answers
1k views

Taxonomy terms follow/unfollow module

Is there any module or options to allow site users to follow or unfollow the taxonomy terms?Basing on the following terms, I have to send a notification if any new post has been created on those ...
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 ...
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 ...
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 ...
1
vote
1answer
427 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 ...
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 ...
1
vote
1answer
196 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 ...
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
274 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
155 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 ...
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?
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 ...

1
67 68 69 70
71