Questions tagged [taxonomy-terms]

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

1,148 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
2answers
2k views

How can I hide the entity ID on an autocomplete widget?

I have an autocomplete widget for a taxonomy entity reference. Every term shows its entity ID between parentheses; plus, if the term name contains spaces, it appears between quotes, e.g. "Lorem ...
5
votes
1answer
134 views

Splitting Atom categories into two fields

I am using Feeds to import an Atom feed into my site. The feed has categories as <category term="cat:Foo" scheme="http://www.sixapart.com/ns/types#category" /> <category term="tag:foo" ...
4
votes
1answer
2k views

View for Taxonomy terms?

How can I output nodes which linked with taxonomy term through a view? How can I link taxonomy vocabulary with a view wich will output appropriate nodes for each term of this vocabulary? In Drupal 7 ...
4
votes
1answer
500 views

Use image from taxonomy term as exposed filter option

I created a view which has an exposed filter for taxonomy terms. Now the next step is to theme the options. I tried the module "Better exposed Filters" but I wasn't satisfied. I would like to have ...
4
votes
2answers
545 views

Contextual filter with hierarchical taxonomy terms

Using contextual filters, I have created a view which shows a page of users at us/california, based on a taxonomy I have made of locations. This taxonomy is hierarchical, though, so when the user ...
4
votes
1answer
407 views

“Page not found” on translated page

I’m setting up a dual language site (English default / Chinese, Simplified) where Taxonomy translation mode is “Localize”. I modified the Taxonomy term in Views. I get results with preview in both ...
4
votes
2answers
2k views

Give a role permission to add and edit their terms in a taxonomy

In Drupal 7 I am trying to give users the ability to add terms to a taxonomy and then edit only the terms they have created. I'm using the Taxonomy access fix module to give users permission to add ...
4
votes
1answer
422 views

Failure getting nodes from terms via the rest api

I have added a REST web service in Drupal and all content is tagged with taxonomy. I'm now trying to acquire all related nodes to the terms. First I'm calling taxonomy_vocabulary/getTree along with ...
4
votes
1answer
204 views

weird features behavior - constantly adding and removing entries from taxonomy.inc

I'm using features and I commit the features module to my repository to track changes. Every now and then (after drush fu foobar) I see the following change to the foobar.features.taxonomy.inc file: ...
4
votes
2answers
4k views

How to translate taxonomy terms displayed via an exposed filter in views?

I'm using the Views, i18nviews, and Entity Translation modules. All of my terms have already been translated using Entity Translation. In views displays, the translated terms appear in the correct ...
4
votes
1answer
2k views

Implementing Taxonomy hierarchy in View and Search

I am working on a biology website that needs to make use of Drupal 7's Taxonomy system, for a biological taxonomy. My goal is to allow users to tag all content with related species information, and ...
3
votes
2answers
578 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?
3
votes
0answers
2k views

What Twig variable can i use to view Page Title or Taxonomy Name for a Taxonomy Type page

In Drupal 8 I need a way to get the Current pages title or Taxonomy name/ID. In the template taxonomy-term.html.twig the variable works: {{ term.id }} I need the variable to work in page.html.twig ...
3
votes
1answer
362 views

How to automatically modify a field after saving content?

I have posted this question on drupal.org (via a comment titled "field modification triggered by saving action"), but I realized that the thread is more than five years old. So I reproduce here the ...
3
votes
0answers
71 views

Views Grouping by Taxonomy Parent of a Parent

I'm working with Views to build a display that groups by "Categories" - see the example- in a vocabulary. I had that working just fine when the vocabulary only went one level deep. Now what I need to ...
3
votes
0answers
791 views

Show nodes of other content type that share a common term (with depth)

I have two content types: sector and product. Both share terms from the same vocabulary, called branch. A sector node should list all product nodes that share the same term(s) (from the branch ...
3
votes
1answer
30 views

How to restrict tagged content based on user?

I'm using drupal 7.39, but I don't know how to restrict users to access some specific content. I have created a content type called person. Then I have created 5 nodes, like so: 2 nodes tagged with ...
3
votes
0answers
103 views

View with list of all taxonomy terms except active node's term

I have an request to create a view based on taxonomy terms. Basically it's opposite of standard Taxonomy Terms list. I have an content type for videos. Each video has its category of course. On full ...
3
votes
0answers
69 views

Problem with feeds taxonomy import

Why is that I cant import taxonomy terms with feeds, it says it imported 23 terms, but they are nowhere to be found.... I used term name, url alias, term id in mapping then imported it via feeds, ...
3
votes
0answers
191 views

How to use Views contextual filters with a hierarchical taxonomy path in the URL

If I have a multi-level taxonomy, and the URL for each Term contains information about its parents in each URL component, how can I set up a View to show the content for each Term? Example of the ...
3
votes
0answers
296 views

Get Location module Block : how to show map markers for particular taxonomy term - exposed to user

I am using the Get Location module for building store locator functionality in my site. I have made a content type with field = address and field type = Geolocations Fields with widget = Geocoder. I ...
3
votes
0answers
82 views

Quick editing of taxonomy tags on a node

I am using Drupal 7 Advanced Forum. I have added a taxonomy field so that posts can be tagged with keywords (like in this forum). Currently if an editor responds to a customer post, the process for ...
3
votes
0answers
76 views

Display all terms in the same lineage when user can save only the deepest level

I'm using D7. I have a vocaburaly. User are enforced to save the deepest term in the vocaburaly with SHS(Simple Hierarchical Select). And, by the setting of SHS, user can save only a term on the ...
3
votes
0answers
383 views

Use text field as contextual filter in views? Or related content not based on taxonomy

I'm trying to figure out if it would be possible to use text field as contextual filter in views? Say I want to have EVA or block that takes certain Field-A from current node as filter. Then EVA or ...
3
votes
0answers
201 views

Rewrite exposed filter input from url

I have created a view to list nodes path articlesearch. Now i want to filter the content with a search string based on title, body and taxonomy term with OR condition One issue i am facing is i want ...
3
votes
1answer
486 views

How to use url alias in views for taxonomy terms?

On a Drupal 7 site with pathauto installed I'm using a view to show all taxonomy terms of a given node. The terms are linked to the term's page. The problem is, that the path of those terms does not ...
3
votes
1answer
855 views

Taxomony menu - show all, vocabulary link are disabled

I have a custom vocabulary which looks something like this: Shops (vocabulary name) Sporting Goods Auto Parts Computers Etc. (15 items in total, 1 level) My goal is to create a menu link to Shops ...
3
votes
1answer
52 views

How can I show two users what taxonomy terms they have selected in common?

I have a taxonomy vocabulary, Hobbies. Users can select their hobbies from a list of about 300. Many users select a few dozen hobbies, which makes for an extremely long list. What I'd like to do is ...
3
votes
1answer
184 views

Block taxonomy list count with filter by search term?

Currently I have setup a view to display custom search results based on search terms (exposed filter): /blog/search?keys=user+entered+term On the page I am looking to show a list of tags with counts ...
3
votes
1answer
2k views

How can I show only first level terms on a dropdown taxonomy exposed filter?

I have a 2 level taxonomy tree: Countries and cities. I also have a view of content, all of which are marked by first level terms (countries) of that vocabulary. My taxonomy tree is like that: ...
3
votes
2answers
358 views

Custom Path Alias with Initial Letter as Token

For various reasons, I need to change my custom path alias for a taxonomy type as follows... FROM: /composers/aardvark TO: composers/a/aardvark So I'm looking at either creating a custom token, or ...
3
votes
0answers
1k views

Contextual filter based on translated term

I'm looking two days for the right answer but can't find it anywhere. Here is my issue: I'm using Drupal 7.21 with Entity Translation to build a multilangual site (English and Dutch). English is the ...
3
votes
1answer
2k views

Taxonomy-term based block display

I'm trying to display certain blocks in taxonomy term pages and the nodes associated based on the taxonomy term itself. Let's say I have 3 taxonomy terms: Bologna, Milan and Rome. When I'm in ...
3
votes
1answer
50 views

How to disallow spam in tag field

We are a a job site where we allow visitors to post Jobs / Events through various forms. However it looks like that spammers are using this process to put spam in tag fields. This has resulted into ...
3
votes
1answer
568 views

Autocomplete term widget (tagging) - Insert as child

Is there a way to insert taxonomy terms as child of a parent term with the auto complete term widget? I have found several modules such as "Content Taxonomy" or "Hierarchical Term Reference ...
3
votes
2answers
1k views

Views autocomplete exposed filter

I am using autocomplete exposed filter in views for country/city with depth which is working fine but there are many identical city names. When user types XYZ he sees 2 entries: "XYZ" "XYZ" and has ...
3
votes
1answer
323 views

StackExchange-style “related tags” block using drupal views?

StackExchange sites, and various other site around the 'net, have a nice tag drill-down feature: You can go to a tag page, like https://drupal.stackexchange.com/questions/tagged/views, and then you ...
3
votes
1answer
94 views

Article view with links to other articles

So I'm trying to create a view which displays the most recent article belonging to a specific taxonomy term and pulls out just the links to other articles which have the same term. I want to display ...
3
votes
1answer
170 views

In a manually created menu, when a taxonomy term is a parent with children, the children never display. Bug?

I manually created a menu where each parent term is a taxonomy. so: Menu name:cars Path: cars Note that 'cars' is a path auto generated url for taxonomy/term/3. I thought you could only put nodes ...
3
votes
1answer
1k views

Menu Block: Expand all children of this tree - ignored?

Is anybody using Taxonomy Menu + Menu Block? I have a problem setting Expand all children of this tree, in that it seems to be completely ignored. My sidebar taxonomy menu lists all children expanded, ...
2
votes
0answers
167 views

How to select, add, limit or level select hierarchical taxonomy terms as field widget values?

To sort and "tag" content hierarchically Drupal has/had the great ability to build hierarchical term trees like: car > toyota > combi, car > ford > lector, etc. which could be added to content in ...
2
votes
0answers
505 views

Tell taxonomy links to use route in custom module

I have a module where I created a route /page/tag/{term} that uses a controller for modifications to how the term page is handled. The problem is that when any page displays these term links, they ...
2
votes
0answers
204 views

Migrate taxonomy with depth

I need to migrate a CSV file of 3000 Taxonomy terms with depth of 5 levels deep. This is a small sample of the CSV comma-separated values file. About Us About Us, Our Programs About Us, Our History, ...
2
votes
0answers
46 views

Taxonomy Terms No Longer Display on Terms Page after editing

I have encountered a strange issue on a site I am working on that has been active for a few years. (Drupal core 7.54) If I edit or add a new Taxonomy term, then the Taxonomy term will no longer show ...
2
votes
1answer
161 views

Show/hide views on content-type based on taxonomy-terms

I have an activity-content-type with a taxonomy field, where I can choose from different taxonomy terms related to the activity. Now I have different views and I want to show the specific view on ...
2
votes
1answer
745 views

Show parent items in hierarchical facet display

Taxonomy terms are configured as such: Parent category 1 - Child category 1 - Child category 2 Parent category 2 - Child category 3 - Child category 4 "Empty facet behaviour" is set to "Do not ...
2
votes
1answer
60 views

How To organize Taxonomy Vocabulary with overlapping terms - Content Display pages and future proofing

I am trying to get a handle on Taxonomy Vocabularies and when to have a separate vocabulary vs when to have multiple fields feed into one vocabulary. How this relates to term pages and Views pages and ...
2
votes
1answer
97 views

Site structure taxonomy configuration

I am looking forward to use Drupal in order to create a knowledge-base website having a structure as shown below. Therefore, each time a knowledge area is selected, Drupal should automatically filter ...
2
votes
0answers
165 views

Prepopulate taxonomy field

I'm writing a module that use Taxonomy terms for different data (cast, directors, ... of a movie). Now I prefill some default fields to a create node page using the hook_form_alter. The only prefill ...
2
votes
0answers
35 views

Is there any way to use comments for taxonomy pages?

I want to add a block like message board/chatbox in my taxonomy pages. Best and simple way to do it is comments. Is there any way to use comments for taxonomy pages?