Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jesper Skjønnemand 66 posts 441 karma points c-trib
    Oct 06, 2023 @ 08:08
    Jesper Skjønnemand
    0

    GetAllContentTags returns nothing on multi culture website

    I have an issue with a list of tags used on a multi culture website where the simplified cshtml below returns 0.

    @inherits Umbraco.Web.Mvc.UmbracoViewPage
    @using ContentModels = Umbraco.Web.PublishedModels;
    @{
        Layout = "System.cshtml";
        var allTags = Umbraco.TagQuery.GetAllContentTags();
        var allTagsCount = allTags.Count();
        <p>@allTagsCount different tags are used on the site</p>
    }
    

    The snippet works just fine on other single culture websites and yes, I am sure that the site has more than 0 tags :-)

    What am I missing?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies