question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tags and Categories dont work in Umbraco 7.6

See original GitHub issue

This is because the model returned is now an IEnumerable<string> or string[], rather than a string. There appears to be code (at least) in postmodel that treats the data from Umbraco as a string array and parses it out. Not sure if this is an ideal fix, but changing the two properties to be like this appears to have it working.

` public IEnumerable<string> Tags { get { return this.GetPropertyValue<IEnumerable<string>>(“tags”); } }

    public IEnumerable<string> Categories
    {
        get
        {
          return this.GetPropertyValue<IEnumerable<string>>("categories");
        }
    }

`

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Shazwazzacommented, Aug 29, 2017

@abhilashca Yes, that is what it means. In Articulate 3 it will work with them enabled or disabled, it performs a check for this. You can always try Articulate 3 now, it’s in beta https://github.com/Shazwazza/Articulate/releases/tag/v3.0.0-beta1

1reaction
biaparcommented, Feb 26, 2018

@JohnBergman

I solved in this mode:

var tagList = item.GetPropertyValue<string[]>("department");  
@foreach (var itemTag in tagList)
   {
      <span>
     @itemTag
       </span> 
        }
Read more comments on GitHub >

github_iconTop Results From Across the Web

issue with tags an categories - Discussions
I'm installing Articulate into a new Umbraco Cloud website (v 7.6.5) and I've got a couple of issues with Articulate's behavior that doesn't...
Read more >
categories and tags do not work - Bugs & Feature requests
Hello,. It looks like the current implementation of tags and categories, both the listing of them and the search, is not working.
Read more >
problem outputting tags - Using Umbraco And Getting Started
On my page I have typed a number of tags, that I would ideally like to output on the front-end. I cannot work...
Read more >
Umbraco Articulate Tags and Categories Returning " ...
Everything seems to be working great except the Tags and the Categories are returning a string that contains "System.
Read more >
How to Upgrade Umbraco Version 7 to Version 8 - ProWorks
With each upgrade we find small surprises that we get to work through. This post shares what we have learned so far. Disclaimer:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found