Questions tagged [taxonomy-terms]

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

Filter by
Sorted by
Tagged with
1
vote
2answers
331 views

Taxonomy term missing as type of data to store in new field for content type

I have Drupal 6.2. I added a taxonomy term and I am trying to to add it as a new field to a content type. However, I don't see "taxonomy term" as a "type of data to store" when I try to select a field ...
1
vote
1answer
354 views

Taxonomy Alphabetical Sorting - Nested or Multi-Level Terms

I have a problem with the taxonomy list. Currently my website's taxonomy is unsorted, and I want to do an alphabetical sort. It is also a multi-level nested list (3 levels). I heard that using 'Reset ...
1
vote
1answer
1k views

Creating a “Related pages” view which also excludes the current node in Drupal 7

I want to create a view-block of related articles. The base for distinction is a given vocabulary. The node which serves as base to such related content list should be excluded from the list. I ...
1
vote
0answers
281 views

How to hide taxonomy menu items on specific pages?

My situation on D7: I have 6 different menus displayed on the left side region of a Omega theme using with Delta + Context. Each menu is a taxonomy vocabulary created using taxonomy_menu and ...
0
votes
1answer
419 views

Creating some views fields for a taxonomy menu with the active trail CSS classes?

I have a taxonomy vocabulary which I want to use to create some navigation on my site. Terms: Weather Clothes Calendar Sports I want to be able to pull these terms and put them in the navigation ...
1
vote
2answers
393 views

Display a block based on the term reference field of the current node

What I'm trying trying to do sounds fairly simple, but I can't get my head around it. I'm having 2 taxonomy vocabularies: machinery and batteries (both created with NAT for all that matters), and 2 ...
1
vote
2answers
337 views

How to display registration form fields based on the taxonomy term?

I have three taxonomy terms. And I want to display different fields in the registration form based on the taxonomy term. I want something like this. taxonomy term 1: Registration form fields: Name, ...
0
votes
1answer
416 views

Taxonomy Term showing strange text

Having taxonamy term issues - as glossary terms showing with text below the text saying "There is currently no content classified with this term." does anyone know how to remove or hide the ...
0
votes
1answer
728 views

How to print a taxonomy term's field value alongside a Views grouping header?

In Drupal 8.4.4 I have a "Living Things" taxonomy vocabulary. One field on the terms in the vocabulary is "Most Common Name", with machine name field_most_common_name. On my "Animalia" term its value ...
1
vote
1answer
354 views

How use views exposed filters with taxonomy and panels

I need some help with the use of contextual and exposed filters with taxonomy terms views using panels. Context: I have a panels taxonomy page overriding drupal default page. In this page I have a ...
0
votes
1answer
396 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 Recipes vocabulary. ...
0
votes
1answer
417 views

No results behavior in Views not working when referencing another field after cache clear

My Setup: I am using Drupal 7.41 and Views / Views UI 3.11. I have a taxonomy named sermon series that includes a field called series image. I have a content type called sermons that has an image ...
1
vote
1answer
3k views

How do I generate URL by term_id

I have a taxonomy term ID that I would like to generate the the URL alias for. In other words, instead of /taxonomy/term/{id} I would like to get the alias I have defined for this, eg: /some/path/...
1
vote
1answer
377 views

hiding taxonomy terms on term page

I'm struggling theming the taxonomy-term page and since i'm not really getting anywhere, i now embedded two blocks (created with views) in my taxonomy-term.tpl.php. Now, that views is showing ...
0
votes
1answer
30 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
384 views

Taxonomy terms with associated nodes: display page by page navigation in node page?

Hi i have a content type called Product and have fields(title,description,code,image) and also have vocabulary categories like below formate parent term 1 -child term 1 --sub child term 1.1 ...
1
vote
1answer
337 views

How to display custom fields of taxonomy in field twig

In my content type for Event, I have an entity reference called Speakers which refers to a taxonomy called Team Members. It's set to multiple so I can say which speakers belong to my event. On ...
0
votes
1answer
349 views

Alter form to have single radio button term reference checked by default

I have a taxonomy reference field and in the node creation form there will be only one value allowed and I guess I use a radio button and I want it to be enabled by default. I thought I can do it ...
1
vote
1answer
334 views

How to create a custom landing page for specific taxonomy terms in Drupal 7

How would I be able to have a customisable page where in it will be a landing page for special taxonomy terms and will display the related articles of a specific taxonomy term. For instance, ...
0
votes
0answers
10 views

Sort tags in a view by the number of content they are displayed in

I'm trying to make a view that would display only name of tags and the number of content that uses that tag. I have managed to do this following this tutorial: https://www.youtube.com/watch?v=...
4
votes
1answer
426 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
401 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 ...
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
569 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
441 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
2answers
425 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 ...
1
vote
2answers
421 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 ...
0
votes
2answers
781 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,...
1
vote
2answers
379 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
401 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
2answers
367 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
392 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
388 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
758 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
5answers
2k views

Blocking access to taxonomy pages

I'd like to block access to all taxonomy pages for anonymous users. For example I don't want them to be able to view http://website.org/category/year/2525 or http://website.org/taxonomy/term/42. Is ...
4
votes
4answers
4k views

Disable taxonomy pages

Are there any way to disable the taxonomy pages? I saw a question that restricts access to them (Original question). But I dont want the "access denied" message to be displayed, I want to remove the ...
-2
votes
1answer
388 views

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
463 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 ...
1
vote
1answer
490 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
385 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....
2
votes
1answer
461 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
3answers
363 views

View listing related nodes by taxonomy term

I have a content type representing a book. Each book as a genre (SciFi, Fantasy, Thriller ...) and I would like to expose, on the page of a book some books sharing the same genre. I created a view ...
1
vote
1answer
311 views

How to show all subterm nodes of a parent term with the simple_hierarchical_select module?

I use drupal 7 and simple_hierarchical_select module. I have a vocabulary called "news group" that has two level term (parent term and subterm) like the attached picture: When I use exposed filter ...
0
votes
1answer
447 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
496 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
1answer
354 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 ...
0
votes
1answer
591 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 ...
4
votes
1answer
410 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
1answer
31 views

Config Export: How to store default value of taxonomy field?

When I define a field with taxonomy term fields, I can set a default value depending on the available terms. Since the terms themselves are content, they are not stored via configuration management. ...
21
votes
5answers
21k 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?

1
2 3 4 5
69