Display all articles on category page

Beantwortet

8 Kommentare

  • Ifra Saqlain
    Community Moderator

    Hi Cris,

    Bydefault 'See all articles' link shows when  your section have more than 6 articles. I saw your category page , sections haven't more than 6 articles.

    You can see in the given image - FAQ section have more than 6 articles so See all articles link  is being show  but Announcement section have only 3 articles that's why See all articles link isn't being show.

     

    By this CSS property you can show only 3 articles in your section on category page. When you add this property  only 3 articles will be show.

     

    Copy this code and paste on your style.css template .

    .category-content .section-tree .article-list-item:nth-child(2n+2){
    display:none;
    }

     

     

    See the result:

    I did it on Copenhagen theme.

     

    Thank you 

    Team Diziana

     

    0
  • Trapta
    Community Moderator

    Hi Chris Whitley, try looking at {{section_tree_with_article}} helper. It will show all the 30 articles in the section. However, there is a restriction on showing all articles in a section but this hack will increase the number of articles to be shown per section for you.

    Let me know if this helps.

    Thanks

    0
  • Chris Whitley

    Thank you both, this is resolved now. A previous piece of code used to display subsections on the category page was limiting the listed articles to 3 rather than the default 6 which I've fixed now.

    0
  • Nicole S.
    Zendesk Community Team

    Glad to hear you got things working, Chris! Thanks for letting us know.

    0
  • DannyC

    Hi guys,

    Can someone please share how they resolved this? I'm trying to get all my articles in the category to show on the Category page, rather than clicking "See all articles", but having zero luck trying to do so.

    Kind Regards,

    Danny

    0
  • Brett Bowser
    Zendesk Community Team

    Hey Danny,

    Looks like there's a community tip published that addresses your use-case: List all articles for each section(s) on the same category page

    This will require some custom code on your end but the above link should walk you through the appropriate steps.

    Hope this helps!

    0
  • DannyC

    Hi Brett,

    Thanks for the response. I did find that tip but I want to remove the whole aspect of the articles being hidden in the first place.

    I don't know why its such a restriction on the system.

    Danny

    0
  • Brett Bowser
    Zendesk Community Team

    Hey Danny,

    I'm afraid there isn't a way to change the default functionality at this time. The only way to display all articles on the category page is through the use of custom code.

    I'll be sure to mark this as product feedback so our Guide team is aware.

    Thanks for taking the time to share this with us!

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Powered by Zendesk