Copied to clipboard

Flag this post as spam?

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


  • George Christoforidis 2 posts 72 karma points
    May 26, 2018 @ 14:07
    George Christoforidis
    0

    Categories and Tags do not work.

    Hello,

    It looks like the current implementation of tags and categories, both the listing of them and the search, is not working. The reason is the way that the property is retrieved.

    This will not work properly for the propery editors of tags and checkbox list.

    GetPropertyValue<String>("smartBlogCategory").Split(',').Contains(...
    

    instead you should cast to IEnumerable

    GetPropertyValue<IEnumerable<string>>("smartBlogCategory").Contains(...
    

    This change need to happen in at least

    1. SmartListPosts.cshtml
    2. SmartListTags.cshtml
    3. SmartListCategories.cshtml

    Thanks, George

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Aug 01, 2018 @ 08:30
    Alex Skrypnyk
    0

    Hi George

    What if you go to /app_Data/umbraco.config and try to find "smartBlogCategory" value in umbraco.config?

    Is it comma separated string?

    Thanks,

    Alex

  • George Christoforidis 2 posts 72 karma points
    Aug 08, 2018 @ 12:58
    George Christoforidis
    0

    I no longer have access to that particular project. but the code change i suggested above works with the existing config.

Please Sign in or register to post replies

Write your reply to:

Draft