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?

Please Sign in or register to post replies

Write your reply to:

Draft