Forum Discussion

luk's avatar
luk
Boss
10 years ago

Labels widget doesn't show anything on CommunityPage

Probably I'm doing something wrong or miss something completely, but I have problems getting the labels.widget.labels-list studio component to display something on the community page, thought that may have to do with the scope of the page where the widget is displayed, e.g. it has to be a blog, forum, idea page etc., but the Studio Components PDF says about this compoenent:

 

"Displays a list of labels and the number of posts that use that label scoped to the blog, forum TKB, idea exchange, Q&A,
or contest being viewed. Clicking on a label displays the associated post page (for example, the TKB Article Page) filtered
to show only posts with the selected label.


Use this component on the Community Page, category pages, and pages relating to blogs, forums, TKBs, ideas, Q&As,
and contests"

 

And: On a forum page for example, the same widget shows the appropriate labels that are attached to forum posts...

 

So my question would be if that is maybe a bug or if I have to consider something else to make this work?

 

Thanks for any advice!

8 Replies

  • Hi luk - hit this API and check if it returns anything or not, /restapi/vc/labels

     

    If it doesn't it means you don't have any labels at the community level, hence the widget is not showing up. Moreover, does this show labels when you add this widget to internal pages?

  • luk's avatar
    luk
    Boss
    10 years ago
    I checked that API call and get back 12 labels, as they are distributed over the content of the community, so there would definitely be data to display, also tried to go back from the custom community page to the default one with the labels component on it, but doesn't help...and yes, as I wrote, on sub level pages (e.g. ForumPage etc.) the labels show correctly...
  • luk's avatar
    luk
    Boss
    10 years ago

    Bump

     

    Nobody has that same issue??

     

    What happens if you guys put the labels component on a CommunityPage, does it work?

     

    Thanks for any feedback!

  • No, this is because you pre define labels against a board, not the category, so unless the labels widget is ajax based that it will re-populate every time user selects a board from drop down, this isn't a possibility.
  • luk's avatar
    luk
    Boss
    10 years ago

    Yeah, that would make sense, but then the documentation should correctly reflect that and not say the following:

     

    "Displays a list of labels and the number of posts that use that label scoped to the blog, forum TKB, idea exchange, Q&A,
    or contest being viewed. Clicking on a label displays the associated post page (for example, the TKB Article Page) filtered
    to show only posts with the selected label.


    Use this component on the Community Page, category pages, and pages relating to blogs, forums, TKBs, ideas, Q&As,
    and contests"

     

    SuzieH Who would correct the docs inside the Litihum Admin?

     

    EDIT: I just checked in Admin > Features > Labels > Edit Labels, you can also set and edit Labels when on the CommunityPage, and not only when inside a board-type page...plus I have there my 12 Labels (in Admin)...so again, back to field one...this component SHOULD be able to display labels on the community page IMHO

  • SuzieH's avatar
    SuzieH
    Khoros Alumni (Retired)
    10 years ago

    Hi luk

    I'm responsible for the the component documentation in the application. I want to check with the Community engineering team though. I want to be sure that you didn't find a bug.

     

    EDIT: luk This is a bug in the documentation. The Labels component only reders at the board level, not at the community or category level.

  • StanGromer's avatar
    StanGromer
    Boss
    7 years ago

    SuzieH FYI since it's been ~3 years, Labels component in stage, it still says:

    Where am I using this?
    • TkbPage
    • Forum Filter by Label Page
    • CategoryPage

     

    Spent time trying to get this working tonight on a CategoryPage, seems that isn't possible.

  • SuzieH's avatar
    SuzieH
    Khoros Alumni (Retired)
    7 years ago

    HI StanGromer. The "Where Am I Using This" simply tells you the page templates where the component appears. The "Where Can I Use This" section for the Labels components says, "Use this component on the Blog Page, Contest Page, Forum Page, Q&A Page, and TKB Page." A user can place a component on a page where it is not supported -- it simply won't render. This is what you're experiencing. The Labels component is not supported on the Category page.