Questions tagged [taxonomy-terms]

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

Filter by
Sorted by
Tagged with
2
votes
2answers
965 views

How can I display all levels in Simple hierarchical select

I created select hierarchy ( taxonomy with 3 level), but in default it shows only one level , how can I display all 3 level in default page? : -Any- + -Any- + -Any- I do not want it to automatically ...
0
votes
1answer
393 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 ...
0
votes
1answer
497 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....
1
vote
1answer
567 views

How do I fill the authors name in a term reference field?

Content type stock contains the term reference field field_producer. What is the rule for Rules in order to fill this field with the node author name on creation? In detail The form looks like: -- ...
0
votes
1answer
416 views

Have can I have a view grouped by nested hierarchy?

I have a nested taxonomy as follows: Some forms will only have the taxonomy of "Basic Forms", some will have taxonomy of "overtime forms", etc. So I want my Forms view to look like this example: How ...
1
vote
0answers
18 views

Two step entity reference selection

I want to create a two step entity reference selection in Drupal 9. The structure so far: Content Type: Company --> Entity reference: Jobs (multiple) Content Type: Job --> Entity reference: ...
0
votes
1answer
574 views

How to add custom sort order to a taxonomy field list?

I am trying to sort the list of content according to the weight order given to taxonomy term. Terminology used: content type : contact-person-details taxonomy : company vocabulary which ...
2
votes
1answer
503 views

Problems with active-trails

I have played with Menu Trail by Path and Menu Position, but none worked well with a Views-generated listing acting as a navigation menu. Imagine the following scenario: On the left side there is ...
0
votes
0answers
15 views

How to get language prefix in URL for terms without translation?

I have a multilingual website with taxonomy vocabulary, which terms are not translatable (company names). But each term has translated meta tags and paths, depending on the selected site language. For ...
1
vote
1answer
40 views

How to display the parent taxonomy term of the "Tags" field?

On my Drupal 9 site, I created taxonomy terms in the "tags" vocabulary (the vocabulary and the default field of the "article" content type) : When I create a node, I select a ...
0
votes
0answers
19 views

How do I dynamically add filters?

I have a view_block with the following filters, I want to change the product tag, Release tag, Document type values dynamically based on url. if the url is, example.com/mars/21.43.00/ProductGuide, ...
-1
votes
0answers
25 views

Why are news not filtered by date?

Task: I need to filter news by category and news creation date. Filtering by category was easily implemented: In Edit View -> FILTER CRITERIA -> Content: Has taxonomy term But news is not ...
0
votes
1answer
527 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 ...
0
votes
3answers
582 views

displaying taxonomy term as a header in a view

I have a view that displays 3 latest articles from a certain taxonomy term. The issue im having is I need to display the taxonomy term as a Header. I dont see the [field_myterm] under Header > Global :...
5
votes
3answers
5k views

get taxonomy terms of specified language

I know I can get list of of taxonomy of a vocabulary with $terms = \Drupal::entityManager()->getStorage('taxonomy_term')->loadTree('course_category'); kint($terms); but it returned all ...
0
votes
0answers
22 views

How to replace the "Views" pages of taxonomy terms?

I have a site with Drupal 9. I have created a taxonomy and I want to personalize the terms pages. In Drupal there is a "Views" for the taxonomic terms pages created by Drupal. The problem is,...
1
vote
1answer
688 views

Dynamic filters based on another filter

I am looking to create something similar to this http://www.smartoplug.com/partsearch I need my view to sort based off of multiple parameters. So if you select ford in the make, the models dynamically ...
0
votes
1answer
402 views

Errors when Taxonomy is chosen in node's Term Reference field

I have created a vocabulary called "Recipes" with several terms underneath (Appetizers, Dinner, etc). I also have a content type called "Recipe" with a Term Reference field for the ...
0
votes
0answers
22 views

How to add contextual filter?

I am working with books in drupal 8. I want to display a specific page("table of contenets") on the sidebar whenever any page of that book is accessed. "table of contents" is a ...
1
vote
2answers
432 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 ...
2
votes
1answer
554 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
1answer
733 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 ...
2
votes
1answer
431 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
1k 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,...
0
votes
1answer
455 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 ...
1
vote
1answer
385 views

Rest Export View multilingual content taxonomy filter fails

I am going to create a REST API using Drupal 8 Rest Export with Views. It is working fine so far. I am showing some fields from content type article and added contextual filters for language and tags. ...
4
votes
1answer
435 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
2answers
395 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 (...
2
votes
2answers
573 views

How to filter taxonomy term in views from URL

I am working on a travel website, and I made taxonomy with depth continent/country/city. I also have taxonomy locations restaurants, museums, nightlife... I have content types destinations and ...
0
votes
1answer
800 views

Pagination isn't working

I have a homepage view called FrontPage. Currently, it shows the pagination link like "1, 2, 3 Next->" as it should; when I click on Next, it goes to http://example.com, not http://example.com/page/1/...
0
votes
1answer
368 views

How to restrict taxonomy term reference with certain terms?

In a node edit/add form, I need to show a field with dropdown/select list options (Cardinality unlimited). I do not want all the taxonomy terms of that vocabulary to appear. I want to show certain ...
0
votes
1answer
1k 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
491 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
530 views

Sort grouping field associated with taxonomy term by weight on drupal 8 views

I'm currently trying to figure out how I can sort the grouping fields(Taxonomy Term) by weight that I have setup on my views. As shown in this screenshot below I have a grouping field that is ...
1
vote
2answers
498 views

Unique taxonomy term

I need a specific vocabulary (A) that has unique terms. I don't want to do validation at form level because I want to be able to add term from everywhere. I successful used ...
1
vote
1answer
469 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 ...
1
vote
1answer
517 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) ...
1
vote
0answers
16 views

How to display all data from a paragraph field in views (Drupal 7)

I am currently a caretaker for a Drupal 7 website and I can't figure out how to group paragraph items in views. I have created a content type Products and one of the fields is called product variation ...
2
votes
1answer
41 views

How to create a view that lists all taxonomy terms of a vocabulary, filtered by a term id?

I have a lot of different vocabularies. On The taxonomy page (the standard view provided) I would like to add a block (view) that takes the current taxonomy id from the url/page and displays all ...
0
votes
0answers
48 views

Split taxonomy terms in two facet filters

English is not my first language, so please be patient. I'd like to ask for assistance to split my taxonomy terms in two facet filters. Context: Drupal Core v9.2.6 Acquia Search v3.0.5 Acquia ...
0
votes
1answer
525 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
506 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
33 views

Similar content with contextual filter by url [duplicate]

There are two types of content (as an example): fruits vegetables They share the same vocabulary and similar terms. Catalog structure: -Fruits --juices ---for children ---for men ---for women -...
0
votes
1answer
914 views

Call to a member function label() on null after saving a node with a taxonomy term

I create nodes, which have a taxonomy field, like this: $node = Node::create([ 'type' => 'article', 'status' => 1, 'title' => 'Some title', ... 'field_taxonomy' => [1, 2, 3], ]);...
1
vote
1answer
574 views

How to subscribe to any or all taxonomy terms on one page?

I'm wondering about the best way to set up "subscribe to get email alerts" I have a content type which is "tagged" with various terms from various taxonomies and I want to set up a simple "subscribe ...
0
votes
1answer
469 views

selecting hierarchical select values during migration

I want to select the values of a taxonomy which is being shown by heirachical select. These values are to be selected while importing the data through csv by using migration module. right now i am ...
0
votes
1answer
838 views

How to fix "This display does not have a source for contextual filters"

I've set up a view to produce a block of content nodes based on taxonomy. I have the filter criteria to include Has Taxonomy term (not empty). Then under advanced I added a contextual filter 'Has ...
0
votes
1answer
372 views

Block showing Parent Taxonomy Term of current Node

Ok my taxonomy is setup like this: Holiday Cards Trees Bears Religious So the goal is to display a node belonging to 'Trees' but in that node I need to have a block that shows the Parent Item of '...
2
votes
0answers
18 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 ...
4
votes
1answer
769 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 ...

1
2 3 4 5
72