Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [taxonomy-terms]

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

0
votes
0answers
4 views

multiple view block by term that list node title tagged with child term

I want to display a view where multiple block are specific to first level term of a vocabulary and that it list all the node tagged with all the child term of that term with deep. I could create each ...
0
votes
0answers
24 views

What is the (number) showing in front of terms and vocabularies in Drupal?

I am new to these staffs, so it is a little bit confusing for me. Can anyone please tell what does this number just telling us?
0
votes
1answer
22 views

How do I alter the term page title? [closed]

Drupal 8 by default give the term name as page title on /taxonomy/term/term-foo. I want to alter it to Items tagged with Term foo. I tried implementing hook_entity_view_alter(), but it didn't work. ...
1
vote
3answers
23 views

How can I tell if I'm on a taxonomy page in preprocess_page?

If I'm on a node, inside preprocess_page(&$variables), I can check if (isset($variables['node']) && $variables['node']->bundle() == 'my-type') to see if I'm on a node, and a node of a ...
0
votes
1answer
15 views

D7 block view to only show child nodes based on taxonomy

Using Drupal 7 I have a hierarchical taxonomy each node in the site is assigned a taxonomy to identify where it sits in the site structure. On certain pages (landing pages) I would like to show the ...
0
votes
0answers
17 views

simpler hierarchy method than using taxonomy? JSON or XML file?

In Drupal 8... I have a couple instances where I need taxonomies with hierarchy, to be able to search by. But the taxonomy sizes are Large. Generally, the standard Drupal Taxonomy is wonderful. But I, ...
0
votes
0answers
10 views

efficient organziation of geographic state/region/content for entries

This is kind of a general question, but maybe someone has an idea. I have a database that will have 300,000+ entries. Each one of these entries will have multiple entries for 'location' - not ...
0
votes
1answer
34 views

JSON:API to Migrating Taxonomy References isn't mapping

OK, for a number of reasons I'm doing a Drupal 8 - Drupal 8 migration using the JSON:API module on the source site. I've run into an issue attaching taxonomy terms to nodes. Here's as far as I've ...
0
votes
1answer
21 views

Unpublished taxonomy term keep showing in main menu and contextual filter

I'am creating a Drupal 8 multilingual side, i have a main menu and a contextual filter that uses taxonomy term. in english version i wont translate all those taxonomy, so i dont want theim to be ...
1
vote
1answer
34 views

How to reference taxonomy used by other content type?

I have two content types: Content A and Content B Fields in Content A: Title, Location, Body Fields in Content B: Title, Type, Location, Body Location is a vocabulary (Au, Uk, Us, Ca, etc) Type is ...
3
votes
3answers
158 views

Error when viewing list of taxonomy terms

I'm getting an "unexpected error" when I try to view a list of taxonomy terms. I recently updated to 8.7, though I have a feeling the problem has been around since before the update. Here's the error ...
0
votes
1answer
78 views

Taxonomy Term Field of a Reference Field in a Product not available in Data Selector for CheckOut Rules

I installed Drupal Commerce Kickstart 2 with drupal version 7.54 and drupal commerce Version: 7.x-1.14. My problem is I want to send email to the store owner every time an order is completed. So in ...
0
votes
1answer
41 views

Creating a “tag blacklist” for users on a view

I'm looking to allow users to create a "blacklist" of certain tags on a site. My plan was to do this through adding a "Blacklisted Tags" field on the user entity, but I'm open to other solutions. If ...
0
votes
1answer
22 views

Multiple path aliases based on taxonomy term

I have taxonomy terms from A-Z and each article can belong to multiple terms. for an example, when I create a new article, I have a multi select list for terms. Therefore a particular node should ...
0
votes
1answer
32 views

Show terms in view filtered from another view

I have two views, first one is block, second one is page. I have vocabulary, let's call it "food". In the food vocabulary we have that hierarchy: Fruit Apple Banana Meat Chicken Pork Both views ...
1
vote
0answers
15 views

How do I configure the migrate API to assign all parent and child taxonomy terms to an entity during import?

I'm importing media files which have a taxonomy in the media content type definition. Here is the section of my Yaml file that deals with the taxonomy. field_nih_asset_taxonomy_auto: - ...
0
votes
1answer
37 views

Get taxonomy term ID from standard URL and then pass it to a View as a contextual filter

is a simple question, I whant get the term ID (tid) from standard drupal taxonomy url taxonomy/term/167 ou 167 is my tid and use as argument on views. I found this code to get the tid: $term_path=...
0
votes
0answers
14 views

Is it possible to store a query calculation result in a search index?

I am counting nodes of a specific type associated with terms with this query: $connection = \Drupal::database(); $query = $connection->select('taxonomy_index', 'ti'); $query->join('...
0
votes
1answer
31 views

How Can I do a content type with a 1:n field inside?

I'm a bit lost about how Drupal manage content. For example, I want to create a new content type called Game. When I create a "Game" I want to introduce "Platform" and "Release date". For example: ...
0
votes
0answers
8 views

How can I bulk manage taxonomy parent child relationships?

Using the Migrate API and the explode and entity generate plugins from Migrate Plus, I was able to bring in a couple thousand taxonomy terms. They were listed in the source as: term1/term2/term3/etc ...
1
vote
0answers
9 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: - ...
0
votes
1answer
40 views

Control access to taxonomy terms

In my project I have companies, which are taxonomy terms, which can create invoices. Users and companies are a many-to-many relationship. I'm able to control access to the invoices using tac_lite, but ...
0
votes
0answers
48 views

Can't update migrated taxonomy terms because of langcode

We have a site that we migrated from Drupal 6 to Drupal 8. If we try to update (Just edit and save) one of the terms that were migrated over, we get an error "The value you selected is not a valid ...
1
vote
2answers
29 views

How to use a contextual filter value in a menu displayed on the same page

I use a view to display a list of books sorted by title. The view has a contextual filter to limit the list by topic. So, a link to the view might be /books-by-title/34 where 34 is the taxonomy term ...
0
votes
0answers
10 views

How can I bulk add multiple taxonomy terms to existing media files, or reimport with terms?

At an earlier stage of a project approximately 30,000 files were uploaded to a Drupal 8 site through the Bulk Media Uploader. Now the project requires that taxonomy terms in an existing vocabulary be ...
0
votes
1answer
50 views

Render taxonomy type custom fields individually

I'm kind of a twig newbie so I'm hoping that someone can point me in the right direction. I've added a custom field field_url to a taxonomy type called field_type_poi. How would you render that ...
0
votes
1answer
34 views

Menu on the taxonomy term page

maybe the solution to my problem is quite simple but I can not find a way on the taxonomy term page to show a menu block! I use drupal 8 with bartik theme and have a menu based on taxonomic terms (...
0
votes
0answers
7 views

Using Webform on Taxonomy Page and using that Term's Values

Say I have a Vocabulary called Branches which has an email field. I wanted to attach a Contact webform to the pages of these Branches where an email will be sent directly to the email field value for ...
0
votes
0answers
15 views

How to list of allowed users of a taxonomy term?

I am using the Permissions by Term contributed module in order to modify the permissions of users based on the taxonomy terms on a node. This is not a problem, however I would like to retrieve a list ...
0
votes
1answer
39 views

Sort view by tag count

I have to show all the tags and sort based on count. I am able to get the count of tag used by pages through views but not able sort based on count as this option is not available in views. Any ...
0
votes
0answers
6 views

How to give users access by vocabulary and show the links in admin_toolbar according to the permission?

I have tried to give the user access to vocabulary granularly, currently it is only possible to give access to use vocabularies and terms and I only want certain roles to only manipulate certain ...
1
vote
0answers
25 views

Taxonomy term limit | how to bypass [closed]

Migrating to Drupal 8 - I find a new restriction - in Views filter - Taxonomy term field cannot be more than 128 characters..... In Drupal 7 I never had seen such a restriction, or it was more longer....
0
votes
3answers
46 views

How can I display a list of users who have the same taxonomy term

The setup: A Taxonomy Vocabulary called "Area of work". The vocabulary has the following associated terms: A, B, C, D, E, F, G, etc. During registration users have to choose a department from the ...
0
votes
1answer
81 views

Translating a taxonomy term does not populate content into fields

When translating a node into another language it does the following: automatically populates all fields with content from the source node on the edit form ensures the two nodes are linked as ...
0
votes
1answer
15 views

Pass argument when overriding controller in RouteSubscriber

I am having the issue of overriding the default taxonomy controller /taxonomy/term/{tid}. I have created my own controller which takes {tid} as a parameter and I want to use it instead, so I overrode ...
0
votes
0answers
27 views

Full text search with taxonomy term

I have a view with full text search working I configured with Apache Solr. My index fields are title, body, taxonomy tags. I have a need to show a hierarchical tree of taxonomy terms on the left of ...
0
votes
1answer
27 views

Sort criteria by year for blog posts

I have a View set up for blog post content in Drupal 8. The blog posts were all posted at the same time but have different "year" tags attached to them based on when the post is relevant to the ...
0
votes
0answers
27 views

Using contextual filters with multiple taxonomies plus dynamic paths

I have a content type, FAQ, which has the Title, Body, and Related AP Course(s) fields. The last is a node reference field, where the target is a AP Exam node. I'd like to create a view page that ...
0
votes
1answer
30 views

Exposed Filter of Child Terms on Parent Page

I'm looking for a dummy's guide on how to configure the default taxonomy term views so that I can display an exposed filter of child terms on the parent page. Assuming I have the taxonomy structure ...
0
votes
1answer
9 views

How do I edit the links in a filter

I don't know if this is the right forum, but I'm updating our corporate website, and picking up where the previous person in my job left off. From the main horizontal menu on the front page (...
0
votes
0answers
77 views

How to grab taxonomy term with node_presave hook

So I'm running a hook to update the title with values from the node whenever the node saves. I want to update part of it with a taxonomy term but when I try to get the term from the entity it says it ...
0
votes
1answer
387 views

How to get taxonomy term field values

I have created vocabulary "Hospital" and created text and image fields like: Hospital Image: (machine name: field_hospital_image) // image field Hospital Contact: (machine name: ...
0
votes
1answer
39 views

How do I display all terms of nodes created by user in a user view field

I have a User view where I list user information with contextual filter UID. I want to display all the terms from the nodes that the user added. I added the Author relationship so that way I can ...
1
vote
1answer
87 views

Page title from the exposed filter term

I have a view that shows all the contents of my site, with an exposed filter, that allows to filter these contents according to different taxonomy terms. I would like the taxonomy term chosen via ...
0
votes
0answers
19 views

Why does “Taxonomy term: Rendered Taxonomy term” display differently to the field containing “Taxonomy Terms”

I'm asking this question to get a better understanding of what Views is doing in the background. I'm referring to solutions shown on Grouping a View by Taxonomy term with multiple values without ...
0
votes
1answer
41 views

How to limit access to vocabulary term by role?

We have two roles: Reviewer and Editor along with two content types: Basic and Article. We have a couple vocabulary terms and taxonomy fields on each content type. Currently only users with Administer ...
0
votes
0answers
43 views

Pathauto bulk update for taxonomy terms with unchecked “Generate automatic URL alias”

I have the same issue addressed for D7 here: Bulk Generating URL aliases for taxonomy terms doesn't do anything or here: Bulk update for unchecked "Generate automatic URL alias" And I'm ...
1
vote
2answers
106 views

Combination of multiple taxonomies

I have these following 4 Taxonomies 1. New Taxonomy 2. Content Category 3. Technology Taxonomy Applications Gamification Architecture etc. Totally 170 terms 4. Vertical Taxonomy Automotive ...
0
votes
0answers
11 views

How to target specific alias or tid with views-view-responsive-grid template?

I have a template named views-view-responsive-grid--taxonomy-term--page.tpl.php in which I have added a custom block to the left of the responsive view grid with the help of my foundation grid, like ...
0
votes
0answers
14 views

How do I automatically assign a node to a term?

I'm playing with taxonomy and rules. I need help, again! Scenario When an user role changes and becomes "writer", there is a rule that creates a new entity type "taxonomy term" name "user name" and ...