cs-icon.svg

Taxonomy for a Basic Blog Website

Taxonomy is a tool that helps you categorize the content on your website, making it easier to manage and share with your team. This example will guide you through setting up a taxonomy for a basic blog website using Contentstack.

Consider you have a blog website focused on Information Technology, with a range of blog posts covering different topics. To streamline your website, you can create a taxonomy named “Blog Posts” and define specific terms such as AI, Data Science, Java, etc., to categorize your blog posts.

To create this taxonomy, log in to your Contentstack account, and perform the following steps:

  1. Go to your stack where you want to create a taxonomy, navigate to the “Settings” icon (press “S”) on the left navigation panel, and select Taxonomy.
  2. Click the + New Taxonomy button.New Taxonomy Button.png
  3. In the Create Taxonomy modal that appears, add the following details:
    1. Enter the Name for the taxonomy such as Blog Posts. The Unique ID will be auto-generated.

      Note: Once saved, you cannot change the UID.

    2. Add a Description for your taxonomy. This is an optional step.
  4. Finally, click Create Taxonomy.Create Taxonomy Modal.png
  5. You can now begin the process of defining terms within this taxonomy to categorize the entries in your blog posts stack.

    Start by creating a term called Artificial Intelligence and save it. To add child (nested) terms under it, simply click the Create a Child Term button.

    Creating-Terms GIF.gif

    Continue creating terms within the Blog Post taxonomy as needed.

  6. After successfully creating the terms, the left panel will provide you with an outline of all the terms present within the taxonomy.Outline of Terms.png
  7. Choose the Blog Posts content type and within the “Content Type Builder” page, hover your cursor and click the “+” icon to insert a field, then select Taxonomy from the list of available fields.Taxonomy Field in CT Builder.png
  8. Name the field Categories.
  9. Click the + Add Taxonomy button.
  10. Select Blog Posts from the dropdown menu, which lists the available taxonomies within the stack.
  11. The field by default is set as mandatory; to make it optional, toggle the Optional field switch.
  12. Optionally, you can set a maximum number of terms that can be applied to the entry when classifying it.
  13. Click Apply to add the taxonomy to your content type, and then Save and Close to save your changes.Adding a Taxonomy to a CT.png
  14. Now, when creating a new entry for the Blog Posts content type, you can select term(s) from the dropdown menu within the Categories field.Assigning-Terms GIF.gif
Was this article helpful?
^