Copied to clipboard

Flag this post as spam?

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


  • Carlos Mosqueda 240 posts 431 karma points
    Dec 02, 2019 @ 22:02
    Carlos Mosqueda
    0

    Umbraco 8, the default StarterKit and how to get the Blog categories as links???

    So I have Umbraco 8.3 loaded and the default Umbraco StarterKit installed.

    I see there is a blog in it and there are categories. BUT it seems that the blog categories are not linked or the links for the categories are not finished. I was just wondering if anyone had implemented it or if there if anyone can guide me to a fix.

    In the CategoryLinks.csthml partial view the code in there is currently just and as you can see no 'Links' have been added to show the posts that belong to that category. My assumption a partial view would take its place OR a redirect with the posts tied to that category would be added. Any pointers?

     @model IEnumerable<string>
     @foreach (var category in Model)
     {
         <!-- TODO: Add links to categories-->
         @category
         <text> </text>
     }
    

    I saw this solution but this is from a few years ago, and I don't know if it will even work in Umbraco 8.
    https://our.umbraco.com/forum/templates-partial-views-and-macros/87352-filter-content-by-tag

Please Sign in or register to post replies

Write your reply to:

Draft