• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 4.x Series
    • Bug
    • [4.1 Beta 2] Table of contents: Duplicated empty TOC items on template page that embeds its own contents with [template] bbcode

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Issue: [4.1 Beta 2] Table of contents: Duplicated empty TOC items on template page that embeds its own contents with [template] bbcode

    • Issue Tools
      • View Changes
    1. issueid=5823 August 15, 2019 2:02 PM
      ACL ACL is offline
      Regular Member
      [4.1 Beta 2] Table of contents: Duplicated empty TOC items on template page that embeds its own contents with [template] bbcode

      In the XenForo version, if a template page contains headings and it is embedded into itself with [template], the table of contents ends up with a duplicate empty item for each heading in that template. All the empty items are listed in the TOC first, followed by the real items. I've reproduced this in the XF demo wiki: https://www.vaultwiki.org/xf-wiki/index.php?wiki/&title=TOCIncludeTest


      So for instance if the page contains two headings (H=2) and one sub-heading (H=3), the TOC is rendered along the lines of:
      Code:
      1 (blank)
      2 (blank)
      --2.1 (blank)
      3 Text for heading 1
      4 Text for heading 2
      --4.1 Text for sub-heading 2.1
      This issue doesn't apply when the template is embedded into another standard page.

      It also doesn't appear to affect the vBulletin version (in my testing): https://www.vaultwiki.org/pages/Temp...TOCIncludeTest
    Issue Details
    Issue Number 5823
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Page Output
    Status Fixed
    Priority 5 - Minor Bugs / Small Tweaks
    Affected Version 4.1.0 Beta 2
    Fixed Version 4.1.0 Beta 3
    Milestone (none)
    Software DependencyXenForo 2.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. August 16, 2019 10:02 AM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed in the next release.
      Reply Reply  
    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 3:00 PM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.