Sub-categories issue

This support request was posted in Flatbase by andreic

Request ID #40826 In Progress
  • Hi,

    Having some troubles with sub-categories. Searched forums and kind of grasped the idea of creating separate pages for sub-categories.

    Here is my sample 2-category, 1 article structure structure:

    Cat: Developer Guides (id:22) -> Cat: JSON API Documentation (id:23) -> Article: Api Article

    Home

    There is also a beforementioned “Sub Category” page, containing [nicethemes_knowledgebase category=22]

    Developer Guides

    Questions/Issues:

    1. Sub-category page (https://help.bettermail.com/kb/developers/) displays only JSON API Documentation – this is expected. However, clicking on the article [Api Article] takes me to https://help.bettermail.com/article/json-api-documentation/ and the categories on the left (I have sidebar on the left) shows top category: Developer Guides. Expected: sub-category page filter to be carried over and applied under /article/json-api-documentation/

    2. How do I force the KB on the homepage (https://help.bettermail.com) to go to sub-category page (https://help.bettermail.com/kb/developers/) when clicked on sub-category with page defined. At the moment homepage links direct to (https://help.bettermail.com/article-category/json-api/). Expected to link to sub category page.

    Can you please advise if there is another way to set this up so that everything makes sense in the sub-category setup?

    I have also found some references to sub-category page template, but can’t seem to find it in the latest Flatbase?

    Cheers,
    Andrei

    Hi Andrei,

    Thank you for reaching out to us. I hope you’re doing well.

    With regards to your question:

    1. The categories there are displayed by the “Article Categories” widget, which unfortunately at the moment doesn’t have the possibility to pick a specific category to display the sub-categories only. This could be a good addition, though.

    2. Unfortunately the Knowledge Base is relying on the categories structure and it’s using the link of the category. Is there a way for you to link the sub-category with the page you have created for it? If so, I’d recommend you applying a customization to the code and linking that directly in the code. The code that is displaying the link of the sub-category can be found in flatbase/includes/functions.php, line 320.

    I hope this helps.

    Best,
    Juan.

    Hi Juan,

    1. Not sure how can a sub-category feature can be used then… I mean you can create it and host it on a page, but it does not make sense to the user as the moment they click on any article within it, the next page shows only the top-level categories and user is all confused.

    Can you please point me to an example where a sub-category can be happily hosted as a distinct “knowledge base”?

    2. Yes, I managed to customise the URL, however the issue in (1) breaks everything as soon as user clicks on an article. Please see https://help.bettermail.com/article/json-api-documentation/ … Can be easily fixed by:
    – add a category setting (custom field – not sure as I am not a WP developer) which would mark the category as “kb root”
    – for article view page, check if article is descendant of “kb root” category and use that category as root when building navigation in the sidebar.

    Cheers,
    Andrei

    Hi Andrei,

    Thank you for the follow-up.

    1. Thanks for the recommendation, but unfortunately this is how the widget looks right now. It doesn’t respond to the context determining which category the user is on. It is a widget to display the article categories.

    2. With the theme as it is right now, the default “article category template” is listing the articles and doesn’t come in the form of the knowledgebase. So when a sub-category is linked it will take the user to this page. The knowledgebase shortcode is to include in pages. These are two different things. I understand that you may want to have the category template displaying as a grid, but unfortunately that’s not possible right now.

    Again, unfortunately what you are asking for are not available functionalities.

    Best,
    Juan.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Login to your Account

Welcome back! Please log in to your account by filling the fields below:

Forgot?

Not a member? Create a free account.

Create a Free Account

You're 27 seconds away from some awesome WordPress free stuff, benefits and more. Create a free account and have access to our free products, benefits and more!

Already have an account? Log in
Secure Server