Questions tagged [taxonomy-terms]

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

Filter by
Sorted by
Tagged with
-1
votes
1answer
40 views

Views PHP Filter buggy for Taxonomy name

I'm trying to show specific contents for specific users based on the taxonomy term. Variables explanation: webauth variable I am using these variables to setup my PHP filter. $_SESSION['company']; ...
-1
votes
1answer
19 views

Loop Custom Content based on the taxonomy term they are in

I created a taxonmy vocabulary, added 3 terms in it Term1, Term2, Term3 Then I created a custom content type, and I associated it with that vocabulary term, so now everytime I create a page I check ...
-1
votes
1answer
26 views

Create View and show tax terms that use the same term as the content

everyone, I am currently trying to create a view, but unfortunately I can't get a result. Initial situation: ContentType A uses a term from Tax B Tax C uses a term from Tax B Now I would like to ...
-1
votes
1answer
303 views

How to fetch taxonomy details from uuid or from taxonomy alias

How canI fetch the taxonomy details from the uuid or from taxonomy alias. My url looks like http://test.com/jobs/finance-accounting?job_category=a4c24884-d2g7-41c6-99f5-eb9783d6b992 which is a ...
-1
votes
1answer
26 views

Adding a class to a node for a certain term

I am working on a node content type that has the vocabulary fruits (I love fruits). Per node there are more type of fruits possible. By selecting field tags (terms of the vocabulary) the classes are ...
-1
votes
2answers
291 views

Make taxonomy lists collapsible in a views BEF

Similar to the module Term Reference Tree is there a way to make long taxonomy list filters collapsible? My use case would be for pages similar to kobejet.com/speakraku - where the list is so long it ...
-1
votes
1answer
17 views

Show Taxonomy Terms that have been tagged on any piece of content

I have a content type and it allows for one taxonomy term to be tagged to it. I want to show that term on each nodes page. How can I do this with views Please?
-1
votes
1answer
303 views

how give user based permissions for menu items?

i have 4 parent menu items for this i'm using superfish menu, how to give user based permissions to add a new page for particular parent menu only, example: menu item1(userrole1) --> for this ...
-1
votes
1answer
44 views

Taxonomy term name issue

$tree = \Drupal::entityTypeManager()->getStorage('taxonomy_term')->loadTree('category'); var_dump(tree); the above snippet gives the following output: array (size=4) 0 => object(...
-1
votes
2answers
714 views

Count node by taxonomy term

I want to build a statistical of ours projects inside my structure. I have a taxonomy term status with the terms ongoing, achieved, not rated and pending. An my content type have a relationship to ...
-1
votes
1answer
50 views

adding new vocabulary after saving node

I try to add new vocabulary After adding node for certain type..'account' if ($node->type == 'account') { $nid = $node->nid; $title = $node->title; $voc_title = 'branches_' .$nid; ...
-1
votes
1answer
30 views

Show accounts with the taxonomy term used from a node [closed]

A default user can create a project (a content type with custom fields) with skills he is searching for his project (taxonomy). There are users (with the Crew role) who have the asked skills (taxonomy ...
-1
votes
1answer
268 views

How to view multiple taxonomy terms content on same page?

In Drupal 6, it was possible to view links like: taxonomy/term/1,2, taxonomy/term/1+2, taxonomy/term/2/2 or taxonomy/term/2/all which would list multiple taxonomy terms on single page (showing ...
-1
votes
1answer
1k views

Add a field programmatically to taxonomy

We have a field.storage.taxonomy_term.field_name.yml file that adds the storage configuration for our custom field. The field is available to be added from the GUI to each vocabulary. The issue we ...
-1
votes
1answer
19 views

How to add a Product Catalogue Field

I have a drupal commerce website, where i have items separateed by category: see here I'd like to add as well, another field called BRAND, so that an item can be associated to both a category ie: ...
-1
votes
1answer
38 views

Cant get views_exposed_form to submit correctly

I needed to have all taxonomy vocabularies available to filter on, without adding all of the taxonomies one at a time. I did this using the Content: Has taxonomy terms (Multiple) Filter - which ...
-1
votes
1answer
29 views

Node data retrieval for different language

I have two languages (English [en] and Arabic [ar]) setup in Drupal 8.3 CMS. I am trying to retrieve data with Node using API, based on the user input language parameter. When I print the node data by ...
-1
votes
1answer
151 views

Loading taxonomy term missing the custom field data

foreach ($tids as $tid) { 200 try{ 201 $term = taxonomy_term_load($tid); 202 if(!empty($term) && !empty($teams_records[$term->name])) { 203 //term objects before ...
-1
votes
3answers
85 views

How to fetch taxonomy fields

I am using drupal 7.36. My question is I have created one taxonomy term "skin type".In this skin type I have created many fields.So I want to fetch all taxonomy terms. How can I fetch this using ...
-1
votes
1answer
78 views

Smart filter (like webshop) for selection of content possibly using taxonomy [closed]

I'm currently working on a website which needs to display paintings. The paintings have certain attributes: the year-of-painting/painter/background color/material. To get the best user experience i ...
-1
votes
1answer
37 views

How do you setup shipping services that relate to a specific taxonomy term?

I have taxonomy reference field for each product. I have DVD,CD and e-Download. If user purchase the e-download related products shipping charge should be free. How to add the conditions using rules ...
-1
votes
2answers
631 views

How to create parent child menu programatically?

I have an array like this : Array( [0] => Array( [link_title] => Level == bod [link_path] => link1 [menu_name] => parrent-child-menu [weight] => 1 [expanded] => 1 ) ) Array( ...
-1
votes
1answer
974 views

How to organize categories and subcategories of products in menus?

I have product content type that I want to display in a menu. Every product belongs to subcategory that belongs to main category, for example: Computers: PC: - product 1 - product 2 ...
-1
votes
2answers
718 views

creating a view of a gallery of images

I need to create a view of galleries of images. The requirement is for a user to click on the menu item "albums". This then renders a view of a selected image from each of the galleries. Each gallery ...
-1
votes
1answer
1k views

Better Exposed Filter Module(bef) doesn't work with hierarchical taxonomy

I'm using better exposed filter module, and trying to build a filter based on a hierarchical taxonomy. But I can't work it out. Whatever how many terms in the taxonomy, the filter only show two radios:...
-1
votes
2answers
784 views

Add block with taxonomy terms in intergrated View Taxonomy term

I'm using one content type that has taxonomy terms. With default view "taxonomy term" that comes with Views 3, I've managed to display the content with taxonomy terms in different menu pages based on ...
-1
votes
1answer
77 views

Global Variable

I have the following problem: I want to create a product catalogue. In the catalogue there are different types (Content Types) of products: eg chairs, tables, couches (i approached that with content ...
-1
votes
1answer
97 views

How to link to particular content type nodes via custom code

I have a content type called 'xyz'. Under that taxonomy select list that contain a,b,c. I am displaying taxonomy terms and I am able to display terms. I need to give link to content type nodes.here is ...
-1
votes
2answers
2k views

creating child terms from a parent using fields

For a project i would like to achieve the following: Using 2 fields in a content type field_parent = reference to term This field references to vocabulary 'parent terms' I have a second field ...
-1
votes
1answer
599 views

How to add an attribute to a node-taxonomy relationship?

I'll try to explain my problem through an example ... I have to do a recipe site with Drupal. I have an ingredient taxonomy and for each recipe I have to assign taxonomy and a value. Example: 4 Eggs,...
-2
votes
1answer
876 views

Edit meta tag for taxonomy terms

I have around 15 categories in my site. I need different meta tags for each category page. How is that possible? I have tried using meta tag context.But it didn't worked. I have these modules enabled: ...
-2
votes
1answer
51 views

Country code in taxonomy shown as flag

I am using ISO 3166-1 alpha-2 codes for countries as a taxonomy in several pages of a given type. When listing those pages in a view, I would like to display the corresponding country flag, rather ...
-2
votes
1answer
166 views

Alternative of Hierachical Select

I see this module is currently old and not maintained by the developers. Is there any alternative module for this?
-2
votes
1answer
111 views

How can I display content of the same type in different ways [closed]

I have some content of the same type already on the site, but there are distinctions within the content, maybe categorized with taxonomy, that sub-type the items. What is a good approach to displaying ...
-2
votes
1answer
53 views

Taxonomy / Category [closed]

I have created Taxonomy with the reference http://www.anilsagar.com/content/drupal-7-tutorial-part-13-drupal-7-taxonomy-vocabulary-terms-tags-categories-concepts . How to call this in the template ...
-2
votes
1answer
533 views

Build gallery in drupal 7 in the way required

I have this requirement. I want some ideas before i start building this. I need to have various categories of galleries i.e cricket, football, rugby. There are the main categories. In the gallery ...
-2
votes
1answer
41 views

How can I delete vocabulary terms at a certain level?

I know there are several threads here about deleting terms with various techniques; I'm going to experiment deleting terms with drush at a certain level, say level three terms and below in the ...
-2
votes
1answer
61 views

How can I display tags on one line [closed]

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 ...
-2
votes
1answer
138 views

How to add country terms and languge field selected language in url?

I need a functionality in which I can select multiple language for a country. I have added the countries as taxonomy terms and in which I added language as a field, in which SUPPORTED LANGUAGES as ...
-2
votes
1answer
27 views

Create a content for taxonomy vocabulary

I have one task to do but i'm not sure where to start. I have to create a content for storing current and historical data for each term in "extaxvoc", the current data will be shown on Search pages ...
-2
votes
1answer
59 views

How do I redirect a controller to a particular vocabulary overview?

I want to redirect my controller to a specific vocabulary page. I redirect my controller using this code. use Drupal\Core\Url; public function importTypes() { $liste_types = $this->getListTypes(...
-2
votes
1answer
47 views

Automatically add taxonomy term based on state

Suppose I have a shopping website for a number of shops selling toys. Not each shop sells each toy. Our solution is that there is a taxonomy 'shops' and toys have a field to assign toys to a ...
-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
761 views

How to disable / modify AJAX validation on Hierarchical Select module? [closed]

I'm using the Hierarchical Select module for Drupal 7. In my form, there are also some required text fields. When I click the Hierarchical Select element to choose a value, several validation errors ...
-2
votes
1answer
141 views

Creating content with a hierarchy

I want to create hierarchical content in Drupal, and I am trying to decide between nodes and terms. What I want to do I want to implement books. Each piece of content may be a book (containing ...
-3
votes
1answer
16 views

Attached all images from taxonomy in view

I am creating a view of a content type and content type is linked with you to taxonomy with has images. Now, i have added Relaionship as well. But now if my node is attached to muliple taxmony term it ...
-3
votes
1answer
61 views

Filling the field with certain criteria before save [closed]

I had a case like this. A Document content type with Taxonomy Term like this Title Category : CAT A CAT B CAT C Doc Number When user selects CAT A, then do some query to find last number of ...
-3
votes
1answer
89 views

how to highlighted clicked taxonomy term

I am using below code : echo "<h1>".Volume."</h1>"; $tid=db_query("SELECT th.tid FROM taxonomy_term_hierarchy th INNER JOIN taxonomy_term_data td ON th.tid=td.tid INNER JOIN ...
-3
votes
1answer
88 views

How to get this hierarchial view [duplicate]

Possible Duplicate: Clean way of building simple taxonomy browser of arbitrary depth Here Bachelor of programme -- Parent hierarchial term Year 1 -- Child term of Bachelor of programme Term 1 --...
-4
votes
1answer
478 views

Multiple dependent select [closed]

I have installed Simple hierarchical select module ,and added category field in one content type and also gave multiple hierarchical taxonomy. but this module is not responding properly when i click ...