Questions tagged [taxonomy-terms]

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

1,211 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8 votes
0 answers
167 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" ...
mpdonadio's user avatar
  • 38k
5 votes
0 answers
973 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 ...
cptstarling's user avatar
5 votes
2 answers
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 ...
Patrick Kenny's user avatar
4 votes
0 answers
403 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, ...
paul cappucci's user avatar
4 votes
1 answer
1k views

How to set a default value for Simple hierarchical select?

I tried to implement hook_form_alter in order to pass default value to Simple hierarhical select views exposed filter. function mymodule_form_alter(&$form, &$form_state, $form_id) { $tid = ...
Yuriy Kosyanchuk's user avatar
4 votes
1 answer
904 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 ...
user5950's user avatar
  • 2,008
4 votes
2 answers
911 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 ...
Dorothy Parkour's user avatar
4 votes
1 answer
422 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 ...
Jessica K's user avatar
  • 126
4 votes
3 answers
2k views

Different view page based on taxonomy depth?

I'm wondering if there is a way to show a different view (or view part) based on the current depth of the term level? Example I have a bunch of categories and subcategories. For the categories I want ...
Steven's user avatar
  • 1,244
4 votes
1 answer
456 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 ...
David Wiktorsson's user avatar
4 votes
1 answer
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 ...
Paul S.'s user avatar
  • 301
3 votes
2 answers
1k views

Is it possible to disable taxonomy hierarchy?

The site I am building uses fields (plus a custom module) to provide a richer set of relationships between taxonomy terms than the built-in hierarchy allows. I want to remove/disable the built-in ...
naomi's user avatar
  • 1,105
3 votes
1 answer
427 views

Taxonomy Term Hierarchy(not programmatically nor content related)

I know there are zillion topics about this, but I just couldn't apply it to my View Block in Drupal 8. On the other hand all these Taxonomy Term Tree creation is based on content related. Here is ...
Mr.T's user avatar
  • 133
3 votes
1 answer
1k views

How to show translated taxonomy terms in term listing in content listing style

I have question about translation of taxonomy terms in Drupal 8. Let's assume this configuration: New created vocabulary, vocabulary language - not specified, terms language - not specified, show ...
Juraj Nemec's user avatar
3 votes
0 answers
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 ...
blu's user avatar
  • 428
3 votes
1 answer
614 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 ...
Andrés Chandía's user avatar
3 votes
0 answers
80 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 ...
Erik Hanson's user avatar
3 votes
1 answer
32 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 ...
user15837's user avatar
  • 479
3 votes
0 answers
114 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 ...
grunfes's user avatar
  • 41
3 votes
1 answer
88 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, ...
hentaigrl's user avatar
  • 113
3 votes
0 answers
202 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 ...
Richard's user avatar
  • 31
3 votes
0 answers
298 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 ...
Sugandh Khanna's user avatar
3 votes
0 answers
88 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 ...
James's user avatar
  • 1,191
3 votes
0 answers
81 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 ...
carrotandme's user avatar
3 votes
0 answers
423 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 ...
betarobot's user avatar
3 votes
1 answer
868 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 ...
gskema's user avatar
  • 131
3 votes
0 answers
189 views

Disable form altering for admin pages on Bootstrap 3

My default theme is Bootstrap but I use Shiny theme as admin theme. Bootstrap theme alters the forms and fields. And I use Hierarchical Select module, there is a dropbox for multiselection and the ...
Metin Gül's user avatar
3 votes
1 answer
53 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 ...
Patrick Kenny's user avatar
3 votes
1 answer
219 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 ...
Steve's user avatar
  • 31
3 votes
1 answer
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: ...
Sinan Erdem's user avatar
3 votes
0 answers
1k views

How to add an exist term reference to a new node?

I have already add a term reference to the article, I want to create a new node by programmatically. When the new node was save, I hope the node was signed with the term data. In the ...
Arason's user avatar
  • 31
3 votes
0 answers
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 ...
Mark's user avatar
  • 31
3 votes
1 answer
3k 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 ...
Kropot's user avatar
  • 271
3 votes
1 answer
51 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 ...
Vox's user avatar
  • 51
3 votes
1 answer
606 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 ...
cateye's user avatar
  • 733
3 votes
2 answers
2k 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 ...
Azz Kawa's user avatar
  • 749
3 votes
1 answer
212 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: ...
cherouvim's user avatar
  • 1,917
3 votes
1 answer
325 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 ...
naught101's user avatar
  • 168
3 votes
1 answer
95 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 ...
KaushikTD's user avatar
  • 179
3 votes
1 answer
187 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 ...
blue928's user avatar
  • 3,794
2 votes
0 answers
31 views

How to group taxonomy terms by depth in views?

my example taxonomy looks like this: - fruit -- apple -- orange -- banana - vegetable -- carrot -- cabbage i want to render a page in views that groups level 1 terms by their parent term, The ...
Tomáš Bažant's user avatar
2 votes
2 answers
138 views

Retrieving nodes tagged by multiple terms

Let's say I have an articles content type, and a field_tags reference field (with multiple values referencing a "tag" vocabulary) To retrieve articles referencing, say, "tag1" or &...
Hubert's user avatar
  • 143
2 votes
0 answers
252 views

How use subqueues of entityqueue module?

I'm on D9 and already using entityqueue module to let the content editors orders some views via "simple" queues Now, I've been requested to make possible to order the nodes appearing on the ...
Giuseppe's user avatar
  • 735
2 votes
0 answers
47 views

Add an image to a vocabulary

I need to add an image to a vocabulary, not the taxonomy terms. Essentially, I need to add a field to the "Edit Vocabulary" page. Is there a way to do this?
xpersonas's user avatar
  • 502
2 votes
0 answers
74 views

Pre-select a checkbox from an exposed filter

I have a view that lists blog articles. The blog content type has a taxonomy reference field to the 'tags' vocabulary, authors can select 1 or multiple tags. The view exposes the 'Has taxonomy terms (...
kevinius's user avatar
2 votes
0 answers
48 views

How do I get a view to list nodes that have the same detail in a particular field as the current node?

Using D8, I'm putting together a genealogy site for my family and having a hard time creating a block that lists the brothers and sisters of the Person being displayed. The basic unit of the site is ...
Greg Galloway's user avatar
2 votes
1 answer
614 views

How do you correctly filter on taxonomy terms to get all nodes matching term or parent term?

I have a vocabulary (channel) with two levels. An article node can be added to the first or second level (via field_channel). The hierarchy looks like: channel-1 subchannel-1.1 subchannel-1.2 ...
LarS's user avatar
  • 615
2 votes
0 answers
38 views

Respecting permissions in getStorage('taxonomy_term')?

Edit: I just realized that Taxonomy permissions are not native to Drupal core, they are the result of a module we activated: Permissions by Term. (This will explain why they are not being respected by ...
Neil Hillman's user avatar
2 votes
1 answer
358 views

How can I use Migrate API to migrate taxonomy with an unknown level of parent child relationships in tact?

I have a JSON file with an entry that looks like this: "taxonomy": "abc/historical_controls/abc2000_2013" In my YML file I have it mapped like this: field_abc_asset_taxonomy_auto: - ...
blue928's user avatar
  • 3,794
2 votes
0 answers
295 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 ...
jbitdrop's user avatar
  • 193

1
2 3 4 5
25