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
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" ...
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 ...
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 ...
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, ...
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 = ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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
...
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 ...
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 ...
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 ...
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 ...
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, ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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:
...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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:
...
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 ...
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 ...
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 ...
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 ...
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 &...
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 ...
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?
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 (...
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 ...
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
...
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 ...
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:
-
...
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 ...