Forum Discussion

micha80's avatar
micha80
Expert
10 years ago

Latest comments in sidebar limit to 5

Hi,

 

I want to limit the latest comments component (blogs.widget.latest-comments) to only show the latest 5 comments. Is this possible with configurations in the admin area or give a special xml attribute in the studio => page => xml tab?

 

Or do I have to recreate this with a custom component?

 

Reagrds,

Michael

5 Replies

  • micha80 - have you tried this?

    Configure how many articles to include in the list in Community Admin > Discussion Styles > Blogs.
  • micha80's avatar
    micha80
    Expert
    10 years ago

    Hi Grazitti,

     

    yes I tried this without success.

     

    Regards,

    Michael

  • OlivierS's avatar
    OlivierS
    Lithium Alumni (Retired)
    10 years ago

    micha80 how about 'Number of articles in the Latest Blog Articles component' in Admin > Blogs?

  • micha80's avatar
    micha80
    Expert
    10 years ago

    Hi Olivier,

     

    I tried that without success.

     

    Regards,

    Michael

  • nibo's avatar
    nibo
    Mentor
    10 years ago

    I also can't find a setting for this, so currently I do it with jQuery:

     

    $(".lia-component-blogs-widget-latest-comments li:gt(4)").hide();