Questions tagged [taxonomy-terms]
"Taxonomy" refers to Drupal's content classification mechanism, organised into vocabularies and terms.
1,194
questions with no upvoted or accepted answers
8
votes
3answers
3k 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 ...
7
votes
0answers
145 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
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
1answer
719 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
1answer
631 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
733 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
411 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
3answers
1k 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
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
429 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
211 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
0answers
312 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, ...
3
votes
1answer
746 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
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
501 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
76 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
895 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
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
0answers
109 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
74 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
194 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
87 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
79 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
400 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
861 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
0answers
188 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
1answer
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
1answer
198 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
429 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
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
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
589 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
178 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
33 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
0answers
198 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
0answers
237 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
753 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
1answer
585 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 ...
2
votes
1answer
123 views
Redirect After Creating New Taxonomy Term
I am new to Drupal. I am trying to figure out if it is possible to redirect back to the Taxonomy page right after adding the new vocabulary term instead of being directed to the manage page of the ...