Scientific taxonomy tree using taxonomy

I’m looking to create website that has a functional scientific taxonomy tree. There will be about 2000 species that span hundreds of genus and many families, classes, orders, subphylum and phylum. Luckily they are all in the same kingdom.

I have an instance of Drupal 9 and started to fill out the vocabulary names and terms.

Is this the best way (for development and maintainability)?

So far I’ve created a separate vocabulary name for each taxonomy level (phylum, subphylum, class, order, family, genus), excluding the species level. Inside each vocabulary, there will be the terms, the scientific taxonomy names.

Let’s take the Common Box Turtle as example.

  • Phylum: Chordata
  • Subphylum: Vertebrata
  • Class: Reptilia
  • Order: Testudines
  • Family: Emydidae
  • Genus: Terrapene
  • Species: Terrapene carolina (Common Box Turtle)

I went into each vocabulary and created the matching terms.
In Manage fields, I added the taxonomy levels. This is were I’m running into my first issue. I’m entering duplicate data and if a genus gets moved to another family, there will be multiple places that will need to be updated, because nothing is directly tying this tree together.

I then created a new content type (Species). I added the fields for each taxonomy level.
Then, I created a new Species node, whose title is Terrapene carolina (Common Box Turtle) and filled out the taxonomy fields.

This brings me back to the question: How do I join terms of another vocabulary together?

That way as I fill out the taxonomy fields the options of the next field are filtered.

And lastly, if I click on any of the taxonomy nodes on the box turtle’s page (for example, Testudines) I’m taken to the Order taxonomy level. There what I would like to see is the Families in that order, instead of all the species in that order.

Poking around I see some modules that extend the taxonomy features, but nothing that I could directly implement for my purposes.

This article was republished from its original source.
Call Us: 1(800)730-2416

Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.

FREE Drupal SEO Audit

Test your site below to see which issues need to be fixed. We will fix them and optimize your Drupal site 100% for Google and Bing. (Allow 30-60 seconds to gather data.)

Powered by

Scientific taxonomy tree using taxonomy

On-Site Drupal SEO Master Setup

We make sure your site is 100% optimized (and stays that way) for the best SEO results.

With Pixeldust On-site (or On-page) SEO we make changes to your site’s structure and performance to make it easier for search engines to see and understand your site’s content. Search engines use algorithms to rank sites by degrees of relevance. Our on-site optimization ensures your site is configured to provide information in a way that meets Google and Bing standards for optimal indexing.

This service includes:

  • Pathauto install and configuration for SEO-friendly URLs.
  • Meta Tags install and configuration with dynamic tokens for meta titles and descriptions for all content types.
  • Install and fix all issues on the SEO checklist module.
  • Install and configure XML sitemap module and submit sitemaps.
  • Install and configure Google Analytics Module.
  • Install and configure Yoast.
  • Install and configure the Advanced Aggregation module to improve performance by minifying and merging CSS and JS.
  • Install and configure Schema.org Metatag.
  • Configure robots.txt.
  • Google Search Console setup snd configuration.
  • Find & Fix H1 tags.
  • Find and fix duplicate/missing meta descriptions.
  • Find and fix duplicate title tags.
  • Improve title, meta tags, and site descriptions.
  • Optimize images for better search engine optimization. Automate where possible.
  • Find and fix the missing alt and title tag for all images. Automate where possible.
  • The project takes 1 week to complete.