Cms: New taxonomy requires manual cache refresh to show title

Created on 25 Jun 2020  路  5Comments  路  Source: statamic/cms

Create a new taxonomy "on the fly" by typing the new name into the input field, via the entry edit screen.

Then in a template use this antlers code to display a list of all categories and links:

{{ taxonomy:categories collection="YOURCOLLECTION" as="categories" }}
  {{ if total_results > 0 }}
  <div class="w-full order-3 md:order-1 mb-8">
    <h3 class="h5 text-gray-900 mb-2">Categories</h3>

    <div class="flex flex-wrap">
      <div class="w-full rounded md:bg-gray-100 md:p-4">
        {{ categories }}
        <p class="mb-1"><a class="py-1 leading-none text-brand-800 hover:underline" href="{{ url }}">{{ title }}</a></p>
        {{ /categories }}
      </div>
    </div>
  </div>
  {{ /if }}
  {{ /taxonomy:categories }}

This results in the {{ title }} showing the term slug. e.g. "new-category"

After manually clearing the cache, {{ title }} shows the title e.g. "New Category".

Statamic version: 3.0.0.-beta-31

PHP version: 7.4

Forge Provisioned DO droplet

bug

Most helpful comment

I think I'm having similar issues with slugs of terms showing in the control panel...

Screenshot 2020-06-26 at 10 45 49

Deleted terms are also not deleting from the stache it would seem.

Seems to be fixed by clearing the stache. More in this video demonstrating multiple issues with terms: https://share.getcloudapp.com/BluODGdp

All 5 comments

related to #1981

cleared the cache, now the title is correct

I think I'm having similar issues with slugs of terms showing in the control panel...

Screenshot 2020-06-26 at 10 45 49

Deleted terms are also not deleting from the stache it would seem.

Seems to be fixed by clearing the stache. More in this video demonstrating multiple issues with terms: https://share.getcloudapp.com/BluODGdp

@rosswintle Hoping taxonomies get some love soon. 馃憤
2020-08-06 18 12 12

The initial part of this issue is fixed in #2684 but I can't reproduce the title not appearing when you create a term on the actual taxonomies area (like @mikemartin is showing). Is that still happening for you?

Nevermind, it happened 馃槃

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AndreasSchantl picture AndreasSchantl  路  3Comments

ReneWeCode picture ReneWeCode  路  3Comments

andrewying picture andrewying  路  4Comments

jimblue picture jimblue  路  3Comments

mattrothenberg picture mattrothenberg  路  3Comments