• HOME
    • PRODUCT
    • PRICING
    • ABOUT
    • COMMUNITY
    Menu
    • HOME
    • PRODUCT
    • PRICING
    • ABOUT
    • COMMUNITY
    Get in touch
    Get in touch
    Menu
    • HOME
    • PRODUCT
    • PRICING
    • ABOUT
    • COMMUNITY
    • Sign in
    • Start free trial
    • Get in touch
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    • Documentation
      • Home
      • Read API
      • Write API
      • Plugin Development
    1. Home
    2. Matthew Price
    • Profile
    • Following 0
    • Followers 2
    • Topics 1
    • Posts 3
    • Best 1
    • Controversial 0
    • Groups 0

    Matthew Price

    @Matthew Price

    1
    Reputation
    3
    Profile views
    3
    Posts
    2
    Followers
    0
    Following
    Joined Last Online

    Matthew Price Unfollow Follow

    Best posts made by Matthew Price

    • 3 Category Levels (trimChildren helper)

      Our existing forum structure includes an extra level, which we use as a section heading. While this works this prevents our theme from showing the subcategories underneath.

      I have tracked this down to the helpers.trimChildren function, which sets the children variable to undefined as a way of limiting the depth. As we need as extra depth level is there any way of overriding this function without having to resort to modifying core code?

      You can see in these screenshots. The first screenshot is how it looks normally and the second is how we want it to look.

      chrome_51QRCf0bWt.png

      chrome_DU4B8eeX9d.png

      posted in NodeBB Development
      Matthew Price
      Matthew Price

    Latest posts made by Matthew Price

    • RE: 3 Category Levels (trimChildren helper)

      @baris Yes I am using the 'treat as section' so it would be possible to check this config to determine whether to trim or not.

      posted in NodeBB Development
      Matthew Price
      Matthew Price
    • RE: 3 Category Levels (trimChildren helper)

      Thanks for response. Exactly what I was looking for

      posted in NodeBB Development
      Matthew Price
      Matthew Price
    • 3 Category Levels (trimChildren helper)

      Our existing forum structure includes an extra level, which we use as a section heading. While this works this prevents our theme from showing the subcategories underneath.

      I have tracked this down to the helpers.trimChildren function, which sets the children variable to undefined as a way of limiting the depth. As we need as extra depth level is there any way of overriding this function without having to resort to modifying core code?

      You can see in these screenshots. The first screenshot is how it looks normally and the second is how we want it to look.

      chrome_51QRCf0bWt.png

      chrome_DU4B8eeX9d.png

      posted in NodeBB Development
      Matthew Price
      Matthew Price

    Get Started

    • Product
    • Pricing

    Resources

    • Demo Site
    • Answers
    • Docs
    • Bug Bounty

    Company

    • About
    • Blog
    • Contact
    Start Free Trial
    Github Facebook Instagram Twitter
    © 2014 – 2022 NodeBB, Inc. — Made in Canada.
    • Terms
    • Privacy
    • GDPR
    • DMCA
    • Contact
    Menu
    • Terms
    • Privacy
    • GDPR
    • DMCA
    • Contact