Copied to clipboard

Flag this post as spam?

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


  • Saba Tandashvili 29 posts 181 karma points
    Dec 24, 2018 @ 13:03
    Saba Tandashvili
    0

    How search in articles by Tags

    Hi, I have property tags on my articles, I need to allow user to search in articles by tags, how is this possible ?

    IEnumerable<IPublishedContent> items = Umbraco.TagQuery.GetContentByTag(searchWord);
    
    foreach (IPublishedContent item in items)
    {
        <li>@item.Name</li>
    }
    

    This code get items by Tag from whole site + it only works when searchWord fully match tag name. So this solution is not working for me.

Please Sign in or register to post replies

Write your reply to:

Draft