We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [taxonomy-terms]

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

Filter by
Sorted by
Tagged with
4
votes
1answer
424 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 ...
0
votes
0answers
21 views

How to mark the fields of a view shown in a table as already read?

I have a view that displays the results as a table, and also contains an exposed taxonomy filter. I need a way to know when a certain field in a row has a value that has already been "seen". A row ...
6
votes
3answers
3k views

how to create view that display just 2 level of taxonomy vocabulary

i have a vocabulary that contain plus of 5 level descendant, i need to create the view to display the first 2 levels and grouping by the first one, i do this: FIELDS: (Parent) Taxonomy term: Name - ...
0
votes
1answer
550 views

How to theme the taxonomy add/edit term form?

I would like to change the design of the taxonomy add/edit term form, how do you create a template for the taxonomy "Add Term" / "Edit Term" just like creating a node form template? Not creating a ...
1
vote
1answer
24 views

How can I have Devel generate nodes with different terms and not always the same term?

I am using the Devel module to generate content (nodes) as a test. The content type has a field referencing a vocabulary that has terms already added to it. When 1000 nodes are generated, Devel ...
1
vote
1answer
396 views

Add taxonomy term in popup

I have a select list with some options. But now I also want an option Other. And when you select the Other option there has to open a pop-up screen with the add term to vocabulary form in it. The term ...
-3
votes
0answers
29 views

Custom pages for separate taxonomy terms [on hold]

I want to design different pages for different categories. For example, if I have 2 categories with machine names One Two I want to have pages like this page--taxonomy--one.html.twig page--...
1
vote
1answer
356 views

Categories and brands

I have a product catalog that I would like to categorise into different categories (and subcategories). I would also like to have a grouping of the products by brands (which of course are orthogonal ...
0
votes
1answer
24 views

Photo gallery with taxonomy filter

It's not easy to explain so I made simple example below. I'm making a gallery in Drupal 8. First I made articles with taxonomy term: animals, forest or people. Some of articles have two or three ...
0
votes
1answer
386 views

Problem with node revisions and taxonomy terms

I have a content type with a number of fields including a checkbox which allows you to select one or more taxonomy terms. If I create a new version of a node, all the previous taxonomy terms are ...
0
votes
2answers
391 views

How to link different contents together and display the linked content on the same page?

I am fairly new to Drupal and would need some help. on my site I have to show a few images (A - B - C - D ) created by a content type X. Each of these images will link to a different content Type Y (...
0
votes
1answer
390 views

File viewer with search filter by category and sub categories Drupal 7

I want to create a site running locally(localhost) which views files that are uploaded by authorized user. Using search filter by category and sub categories, all ebooks that are included in that sub ...
1
vote
1answer
22 views

How to get a taxonomy custom image field URL value

I've created an image 'field_term_preview' field on the taxonomy vocabulary and trying to get this URL in my custom module: $terms =\Drupal::entityTypeManager()->getStorage('taxonomy_term')->...
1
vote
2answers
340 views

how to hide the tags and category in the front page

My site is http://nbmdemo.16mb.com/ How do I hide tags:featured Also in http://nbmdemo.16mb.com/?q=node/1 Same thing with: Category: Demo Articles
0
votes
1answer
419 views

How can I extract and print specific field values from $page['content'] in page.tpl.php (vocabulary page)

I am trying to print some specific fields on a vocabulary term page in order to lay the page the way I want. <?php print render($page['content']); ?> prints the entire content but I want to ...
1
vote
0answers
356 views

Use taxonomy vocabulary from one domain to assign to nodes from another

I have a few domains: domain.com - the main one 1.domain.com 2.domain.com I want to be able to create and manage taxonomy terms the following way: In the main domain I have a vocabulary; I can ...
21
votes
5answers
19k views

Load term by name

In Drupal 7, we can load the term using name for ex. taxonomy_get_term_by_name($name) Is there any way to load term via given name in Drupal 8?
0
votes
0answers
39 views

How to display values of certain taxonomy term above the table with the search results list based on content type, related to entering search query?

I made a view which displays a search result list as a table. The searching process works inside one content type using Search API. The system also has to look for between taxonomy terms (name) first ...
0
votes
1answer
31 views

Contextual filter using any term ID

I want to set up a view with a contextual filter that will work with any term id (without selecting a specific category). I could only find some old, dated mentions of this. So I'm not sure if this is ...
0
votes
0answers
23 views

Replace taxonomy vocubulary administration page with a view

I would like to replace admin/structure/taxonomy/manage/my_vocabulary/overview with a custom view. Some of my vocabularies have custom fields that I would like to display and use as filter for the ...
2
votes
3answers
1k views

Adding a taxonomy term translation changes the original language value!

I have an issue when I try to add a translation of a taxonomy term using the site UI. The original language value changes to the translation value that I added. How can I prevent that from happening?
0
votes
0answers
4 views

how to replace the old sorted display content in views with newly added content?

I have 5 display of contents in views then in each content type i added taxonomy which contain the order of 1-5.Now if i want to add a content to order 2 it should replace the order 2 with the new ...
0
votes
1answer
383 views

Drupal 7 user taxonomy by location

I am trying to add taxonomy to my user location. User A lives in Berkshire, UK, User B clicks at "berkshire, Uk" in Profil of User A and get a list of all Users who lives there. For example look at ...
2
votes
1answer
441 views

How to load taxonomy terms from user profile field using entityfieldquery()?

I want to write hook_node_form_alter() and limit taxonomy terms with only user checked terms on his profile in field_companies. I can't pass the 1st step - load array of user checked terms from ...
-4
votes
0answers
17 views

Taxonomy-term filed issue when choose term [closed]

I have taxonomy term name cars and there is field inside it, named petrol, integer type. I add content type and add taxonomy term field on it. What I need is when I choose the taxonomy from list ...
0
votes
1answer
444 views

Include Full Taxonomy Term inside a Content Type?

I'm working on a project where we want to pull in the title, description, and an image from selected taxonomy terms and include them in content of a predetermined content type. The content type is ...
2
votes
1answer
458 views

How to create landing pages and Main Menu based on taxonomy

I'm trying to build a website for a non-profit which has multiple locations (~6) besides the headquarters. The frontpage needs to be generic for the whole organization and will contain content from ...
0
votes
1answer
341 views

How to remove target id from selected term reference field

While selecting taxonomy from autocomplete term reference field, its target id also get displayed. How to remove target id from display? In picture displayed, I want only 23456789 not bracket part i....
0
votes
0answers
11 views

How to rename comment links on a taxonomy page?

I activated the taxonomy view and activated the comment fields (standard view field). And then an ambush. I can’t change the name of the link either in a view or in hooks. Add a comment to the one I ...
0
votes
2answers
348 views

How do I validate the term title in hook_taxonomy_term_presave()?

How do I validate the term title in hook_taxonomy_term_presave()? Is there a way to proceed with the validations in hook_taxonomy_term_presave()? @Edit I rendered taxonomy add term form via "Inline ...
1
vote
2answers
416 views

Add css-class based on productpages' top level taxonomy term

So I have a website (created with drupal 7) where each product is linked to a taxonomyterms. This was done so that all products can easily be divided into several different categories. So I have a ...
14
votes
9answers
33k views

Get taxonomy terms

I wanted to retrieve taxonomy terms from a certain vocabulary in Drupal 8. Apparently I can still do it using taxonomy_get_tree but it's deprecated. I now have to use TermStorageInterface::loadTree ...
0
votes
1answer
422 views

hook_form_alter #attributes and #disabled

I'm using Drupal 7 and Advanced forum. The users when will create a new topic will be able to select the forum container and forums, but if they select a container, an error will be showed. I want ...
1
vote
2answers
424 views

How to display content in views with large 4-layer taxonomy term tree filter?

To describe my problem more accurately I'll give a simple example of my situation: I have a categorized content. There are 10 different categories like clothes, cars, lamps etc. Each of them have more ...
0
votes
2answers
735 views

Can I create a link to a nodes taxonomy page?

I have a page that has a single category applied to it, for this example, "Self Help Books". I want to put a place on content type that display a "view all [insert category here]" that links to that ...
1
vote
1answer
481 views

node_load not show taxonomy terms

i dont know why the script node_load(7) output is : public 'field_tags' => array (size=1) 'und' => array (size=2) 0 => array (size=1) ...
0
votes
1answer
377 views

Related Content By Taxonomy Term and fields

I have a content type which has taxonomy term field (Department). There is another field of the same taxonomy term (Priority Department) I want to create a list of related content where the block ...
-2
votes
1answer
22 views

How can I display tags on one line

How to change the below output of a drupal article Tags display with bootstrap theme To something like this which is displayed in stackoverflow below any questions Is there a ready made module ...
1
vote
1answer
36 views

If content type with specific field that is not empty has specific taxonomy term attach library [closed]

I would like to attach a specific library using a taxonomy term to a content type with a specific field that is not empty. The following is not working: function lehigh_preprocess_page(&$...
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 ...
1
vote
2answers
68 views

How to load a taxonomy term with case-sensitive?

I used this $this->termStorage->loadByProperties(['name' => 'test']); I got two terms: Test, test. I want to get only one: test This is working without case-sensitive: $this->...
2
votes
1answer
434 views

Filter Taxonomy reference field on Workbench Access permission

i need some help with Workbench access based on taxonomy. This is my use case: I have this taxonomy structure for my site: - Term A - Term B - Term C And i have 2 roles: - editor - editor C ...
0
votes
1answer
39 views

Exclude taxonomy term from view display except its own?

I work on a news publisher site and I need help excluding a taxonomy term from view but still to keep it with its own page. E.g. Our content is organised by theme and region. For one set of articles ...
1
vote
1answer
30 views

How do I use hook_update_N() to create a vocabulary?

I want to create a standard vocabulary (no extra fields) in Drupal 8.7.5 programatically, using hook_update_N. I've never used this function before. So I'm a complete newbie. I've modified a simple ...
0
votes
2answers
674 views

How to add a default taxonomy term to all nodes in a migration?

For a Drupal 7 to Drupal 8 migration, we're taking what was a Quotation content type and migrating it into an Article content type, joining a ton of nodes that are staying as Articles. To distinguish,...
2
votes
1answer
425 views

Taxonomy jump list in view in parent/child order

I have a taxonomy vocabulary of universities with their parent states. I then added this taxonomy field to the user profile so I could indicate what university the person was from. I'm trying to get ...
0
votes
2answers
441 views

View restricted to a specific taxonomy term

I have a custom content type called Property with taxonomy term fields set up for example for vocabularies Train Station, Style, and Area. I would like to create a view showing only those Properties ...
0
votes
1answer
13 views

Have Views based Taxonomy Term page use term description for title

I am using a view to replace the standard Taxonomy Term page (turned on the standard one in Drupal 8.x). I want the Title of the page to be changed from the Name of the term to the Description of the ...
-3
votes
0answers
14 views

Drupal commerce 8 taxonomy term page display [closed]

I am using drupal 8 commerce2.. creating taxonomy terms and product type.. and creating taxonomy menu.. created products.. but taxonomy pages shows no products.. How can solve this issue..
2
votes
2answers
611 views

How to show a block on a specific url?

I need to show blocks on different url's. Block1 Should be displayed on: branches/taxonomytermlevel1 But not on branches/taxonomytermlevel1/taxonomytermlevel2 Block2 Should be displayed on ...