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
4answers
5k views

Disable taxonomy pages

Are there any way to disable the taxonomy pages? I saw a question that restricts access to them (Original question). But I dont want the "access denied" message to be displayed, I want to remove the ...
4
votes
4answers
721 views

Should I change multiple text fields values via MySQL or is there any other preferable way?

The site has a content type and this content type has two fields: Text Field Term Reference Field There are thousands of nodes on this content type and I want to change some values (find/replace). ...
4
votes
1answer
394 views

A view that displays content with taxonomy term of current user?

The Setup: A Taxonomy Vocabulary called "School" - During registration, users can choose multiple "Schools" from the taxonomy list to associate themselves with. A content type called "Lesson" - ...
4
votes
1answer
1k views

How do you theme the taxonomy description field?

I need to theme the description field on a taxonomy page. I've tried field--description.tpl.php with no success. Also, do I also copy the contents of /modules/field/field.tpl.php as a default ...
4
votes
4answers
428 views

How to change a term URI based on content type

I have 2 content types (photos, videos) and both have a term reference to a "topic" taxonomy. The topic terms are showing on the node display pages and I would like to link to "/photo/%" for photos ...
4
votes
3answers
2k views

Change the error message “An illegal choice has been detected. Please contact the site administrator.”

When a user submits a content that has a taxonomy selection field and NOT make a selection, then the referenced error appears. Now, I know exactly when, how and where the message appears, is there ...
4
votes
2answers
1k views

How to delete taxonomy term?

I would like to delete taxonomy term. Unfortunately on taxonomy -> list I can only see "edit" button next to each term (under "operations"): How can I delete the term I added earlier?
4
votes
3answers
3k views

How to display a comma-separated list of multiple field values?

How can I render for example each taxonomy terms value as an inline comma-separated list (or add between each of them a "/" Character) in my field template field--node--field-tags.html.twig file or ...
4
votes
2answers
802 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
7k 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
2k 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
1answer
4k views

Show parent taxonomy term in view

I have taxonomy countries list with cities Czech Republic - Prague - Brno Germany - Berlin Then I have content type position where I am using this taxonomy as select list. Now I need to create ...
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
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
511 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
94 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
2answers
4k views

get taxonomy terms of specified language

I know I can get list of of taxonomy of a vocabulary with $terms = \Drupal::entityManager()->getStorage('taxonomy_term')->loadTree('course_category'); kint($terms); but it returned all ...
4
votes
1answer
952 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
564 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
3answers
1k views

Building a search View that respects access control

I'm implementing search on a site using taxonomy access control with search api and search api solr. Reading the help page node access section, I see: Needs details on how to build a View that ...
4
votes
2answers
646 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
597 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
3answers
667 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
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
2k views

Entity Reference of multiple types

I would like build out page content using entity references. The problem is I would like to reference multiple types of entities (nodes and terms) plus content that is not an entity (views.) I've ...
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
390 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
2answers
293 views

How to create a list of vocabulary names for a widget?

I would like to create a customizable filter widget that can be used to filter a view on a page. One type of filter uses taxonomy terms. While I can easily create a list of terms, I find I cannot ...
4
votes
2answers
912 views

How to import taxonomy from Json format

I have taxonomy in Json file. I need import this file into Drupal into exist vocabulary.how can I import data from Json file to exist vocabulary?
4
votes
3answers
601 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
955 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
877 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
453 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
87 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
718 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 ...

1
3 4
5
6 7
72