"Show all [x] articles" not showing if less than 7 articles

6 Commentaires

  • Kyle B

    Answered my own question. I went in to the category_page.hbs and started deleting things to see if I can make it work. Again, I know nothing about coding or what I'm doing so it's a lot of learning as I go. Here is what my code looks like and I have highlighted what I deleted:

    Now every catagory has a "See all X articles" listed below, even if there is only 1 article. I can live with that. 

    0
  • Kyle B

    Alternatively, if you want to show just "Show all articles" and not have the number, you can modify what I have listed above on line 90 from this:

     {{t 'show_all_articles' count=article_count}}

    To this:

     {{t 'show_all_articles'}}

    Now every section will be followed by "See all articles". This should work regardless of how many articles you have listed as your preview. I just wanted to have 3 but that shouldn't make a difference. 

    0
  • Brett Bowser
    Zendesk Community Team

    Thanks for taking the time to share this with everyone Kyle!

    0
  • Noah

    Is there an official fix for this issue as I'd prefer to have a 'Show all [x] articles' link after 3 articles than a workaround that produces mixed results?

    0
  • Brett Bowser
    Zendesk Community Team

    Hey Noah,

    Excellent question!

    I'm afraid the custom code mentioned above would be the only way to accomplish what you're looking for as this isn't built into the Guide theme by default.

    Let me know if there's anything else I can assist with!

    0
  • Noah

    I should add that a few weeks ago, maybe a month or two at the most, this bug wasn't an issue in my experience, as the "Show all [x] articles" link was previously being shown for sections that had between 3 - 7 articles, so I don't know what has caused it to disappear from view.

    0

Vous devez vous connecter pour laisser un commentaire.

Réalisé par Zendesk