Questions tagged [taxonomy-terms]

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

Filter by
Sorted by
Tagged with
4
votes
2answers
735 views

How to bulk delete empty taxonomy terms?

The website has thousands of unused (empty) taxonomy terms and I want to bulk delete them. With views all empty terms can be listed but it's not possible to delete them via Views (VBO etc). I saw ...
4
votes
4answers
6k views

How to get taxonomy by URL alias?

I have a grade vocabulary with a 6. Class taxonomy term. The taxonomy page have an URL like www.example.com/foo/6-class/bar and I can't find the taxonomy with the following code. $grade = arg(2); $...
4
votes
2answers
216 views

How to remove content from view once user clicks on it (or reads it) in drupal 7?

I have a view "Recent content of your interest" based on taxonomy and flag. Current scenario: User clicks on content from view and reads it, he comes back to same view. What I want: User clicks on ...
4
votes
2answers
6k views

Populate a select box with a vocabulary

I have a select box that I want to populate with a particular taxonomy programmatically. If i was was to use a taxonomy vocabulary how would i populate a particular select box in my form. My form is ...
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 ...
4
votes
2answers
8k views

Get taxonomy term ID in node

I have the following content types: hotels, and taxonomy terms; in hotels I have a taxonomy field. How do I retrieve the taxonomy term ID in a node? Is it possible to retrieve the self and parent ...
4
votes
5answers
2k views

How can I conditionally display something in Views header area depending on the argument in URL?

The URL of my page view looks like my-view/%1/%2 The first argument %1 is term id of either vocabulary A or B or C and all of them are hierarchical taxonomy. How can I conditionally display something ...
4
votes
3answers
427 views

How to implement a node limit per taxonomy term?

I created a Taxonomy with a "Limit" field, so that I can add term within "limit" number. Here is a screenprint of it: My question: How can I limit the number of nodes that are using each term, so ...
4
votes
2answers
1k views

Selecting taxonomy term in article and showing all articles titles associated with this term

I have a content type article and when editing an article there should be a field where you can select a taxonomy term of a specific vocabulary. When viewing the article it should show a list of ...
4
votes
2answers
5k views

How to insert any view inside of another view?

I wonder how to insert any view inside of another view in Drupal 8? Simply, we have products pages, which contains product details pages in views. When I click on any product detail page from view, ...
4
votes
2answers
92 views

How to unpublish a node with vocabulary term X after Y hours?

How could I automatically unpublish a node after Y hours (e.g. after 24h after it appears on-line) but only when it has a specific category - category is based of course on taxonomy's vocabulary. ...
4
votes
1answer
901 views

alphabetize the taxonomy term page without views

Is it possible to alphabetize the taxonomy page without using views? for example: THE TERM'S NAME - A node - B node - C node - D node Thanks. CLARIFICATION: I know I can reset the terms themselves ...
4
votes
1answer
561 views

Google shows node links instead of Custom URL

I have got a serious problem. My drupal website was going well. All Links crawled and indexed by Google were custom(natural), But some days ago my website went down because of bandwidth problem. After ...
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.
4
votes
2answers
517 views

How to add Tags to images being uploaded?

Is there a way to add tags to uploaded images (stored in vocabulary under admin/structure/taxonomy/tags/edit) There is just alt and title fields as default at the moment.... I want users to add/ ...
4
votes
3answers
2k views

View showing ONLY taxonomy children terms and NO parents

I've managed to got my view working but my worry is that this method is not dynamic. What I want to achieve? To have a list of articles tagged with terms that are one level deep (children) but not ...
4
votes
2answers
1k views

Next link on node page based on its taxonomy term

So here is what I'd like to achieve: I'd like to put a Next link to every content of a type, that links to the next content with the same taxonomy term. So for examle if I have A, B and C products ...
4
votes
1answer
592 views

Why not programatically created nodes in the simpletests?

Most core and many contrib simpletest test create nodes by preparing the interface, logging an admin in and then filling out the form on /node/add/foo. Not only is this terribly slow, it fails at the ...
4
votes
2answers
2k views

How to create a list of similar nodes in Drupal 7/Views 3

I face a rather common problem of displaying a list of nodes similar to current one. Similar node is defined as one having at least one taxonomy term that current node has. There are few solutions ...
4
votes
3answers
655 views

How to prevent access to Views-only content?

When I'm developing sites in Drupal, I create various content types and taxonomy vocabularies that I use with Views to build displays. I might not ever want the nodes to be viewable in their own right ...
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
2answers
7k views

Custom template file for taxonomy term in drupal 7

I need to create only one tpl.php file for all taxonomy terms in my website. I know taxonomy_term_page.tpl.php will do the required function in Drupal6. For drupal 7 I had override the taxonomy-term....
4
votes
2answers
1k views

How can I color my taxonomy term [closed]

How can I add color to my taxonomy terms. Example I have terms "Working" and "Under maintenance". I want to color them green and red respectively. How can I achieve this?
4
votes
2answers
2k views

Make top level terms un-selectable in hierarchical taxonomy?

I have a taxonomy like this: Color -blue -green Size -large -small I need to use 1 vocabulary not 2. However I need 'Color' and 'Size' to not be selectable. If I create a hierarchal taxonomy is ...
4
votes
2answers
4k views

In Rules, how can I use a set the value of a taxonomy term reference field to multiple values?

How can I set a taxonomy term reference field to two values using Rules? The "Number of values" for the field is already set to two. I set up a workflow in rules that works for setting a single ...
4
votes
1answer
3k views

Migration module and taxonomy terms

I am attempting to use the migrate module to bring in data from another web application. There are several fields that are related and the first one I'm working with is languages. I can import the ...
4
votes
2answers
389 views

Any suggestions for Taxonomy scaling and performance with 1073 terms?

I manage a website where the owner categorizes everything via taxonomy. However, he's extremely detailed when it comes to categorizing things. He has 1073 taxonomy terms, about 1000 of which are in ...
4
votes
3answers
3k views

Views relationship using taxonomy

I have two content types (document and employee) and both have a reference to a taxonomy (language). I would like to build a view showing all documents that a employee could read. In other words, both ...
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' => '...
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 ...
4
votes
4answers
743 views

Error when viewing list of taxonomy terms

I'm getting an "unexpected error" when I try to view a list of taxonomy terms. I recently updated to 8.7, though I have a feeling the problem has been around since before the update. Here's the error ...
4
votes
3answers
599 views

Filtering nodes shown on taxonomy menu block

As in the picture, the taxonomy terms are showing count of nodes tagged with the term( using taxonomy_menu module). That nodes are of type classified ads. Is it possible to filter out expired ads ? I ...
4
votes
1answer
1k views

Add/Edit Taxonomy Terms directly from add content form

I've hunted around for a while trying to find a solution to what I believe is a common user interface in the world of data entry but appears to be missing from Drupal. What I want to be able to do is ...
4
votes
3answers
8k views

Search module for taxonomy terms?

Having browsed through drupal.org with no results for D7, let ma ask the public: does anyone know of a Search module that would extend the search by taxonomy terms? I have a very taxonomy-intensive ...
4
votes
2answers
949 views

Taxonomy term AND (,) operator does not work

In contextual filters, with validator = taxonomy term Filter value type = term ids separated by , or + allow multiple values = true Giving argument "1+2" works as espected: OR operator Giving ...
4
votes
2answers
1k views

How do I group taxonomy by hierarchy, not node?

I am using Drupal 7 and Views. I'm trying to use the generic Taxonomy/Term view and get a grouping I don't want. I want this: Taxonomy 1: Node A Node B Taxonomy 2: Node B Node C (Notice Node B ...
4
votes
3answers
874 views

Allow users to edit just the vocabulary that belong to them?

I allow users to create a taxonomy vocabulary. Then I need to be able to give permission to each user to edit their own vocabulary. I looked at the permission page but I don´t see anything like Edit ...
4
votes
1answer
404 views

Breadcrumb with taxonomy path

I use the theme "Bootstrap". When I display a node, there is no breadcrumb. My nodes are related to taxonomy terms. On the screenshots : Boutique / Les chocolats BIO The second screenshot should ...
4
votes
1answer
84 views

How to migrate from using the Taxonomy Access Control module to the Group module?

We have a Drupal 6 site, and we are making use of the Taxonomy Access Control (=TAC) module for access control. We evaluated the migration steps, and even if TAC could be ported to 8, maybe we could ...
4
votes
1answer
646 views

Custom Entity - use taxonomy fields in views

I've created custom content entity, where one of fields defined in BaseFieldDefinitions() is $fields['game_category'] = BaseFieldDefinition::create('entity_reference') ->setLabel(t('Game ...
4
votes
2answers
532 views

Restrict a role to administer certain vocabularies and terms, and remove the access to creating vocabularies

As far as we all know Drupal (still in D8) has a lot of issues with permissions and taxonomies. So I give my user role the permission to Administer vocabularies and terms so he/she be able to access ...
4
votes
1answer
194 views

Content type or taxonomy term? [closed]

When we want some specification for a content, how should we decide whether to make that specification a separate content type or a taxonomy term? For example, I had to build a music store site. The ...
4
votes
2answers
269 views

How to add more than one tags for content?

For example, I want to create two tag, one is "new", the other is "test",Now tags is "new test" Screenshot:
4
votes
4answers
518 views

Make taxonomy term only link to term page if multiple nodes have that term?

I have a free tagging taxonomy term field. How can I make it so on the node page the term only links to a term page if there are multiple nodes with the same term? Otherwise this link and page are ...
4
votes
1answer
720 views

In Drupal 7, how do I display my taxonomy term fields while creating content when using a checkbox field?

I currently have the following below as a taxonomy reference field in one of my content types as a checkbox list widget during content creation. Currently its only showing the term name, but I want ...
4
votes
2answers
1k views

Showing Warning for viewing adult classified content

I am developing one publishing website, where authenticated users can write the article. For each article, he sets the age group for which the article is targeted for. Different age group may be "...
4
votes
1answer
1k views

How to handle large taxonomy

Have a page on website where exposed filter is hierarchical taxonomy (Country/City). Works fine with few terms, just for test. Page loadtime is 1.5ms, choosing terms goes in blink. Now i imported all ...
4
votes
1answer
2k views

“Rendered” View style for a Taxonomy Term?

When creating a View for content Nodes, the "Format > Show" options includes "teasers" and "full posts" in addition to "fields". But for Taxonomy Terms, the only option appears to be "fields". I have ...
4
votes
4answers
693 views

views: all terms as images

I have a node view and want to show all terms (which have one image field per term) related to that node (which might be multiple terms), explicitly showing their respective images. How can I do that? ...
4
votes
1answer
3k views

How to use taxonomy fields with Views and avoid duplicates?

I have content type 'sports venue' which is related to taxonomy vocabulary 'activity'. So a simple View of venues and activities might look like this: Park : football, hockey, running Pool: swimming, ...