• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
      • Try XenForo Demo
      • New Posts
      • FAQ
      • Calendar
      • Community
        • Groups
        • Albums
        • Member List
      • Forum Actions
        • Mark Forums Read
      • Quick Links
        • Today's Posts
        • Who's Online
      • Sponsor
        • Sponsor a Feature
        • List of Donors
    • Wiki
    • Support
    • What's New?
    • Buy Now
    • Manual
    • 
    • Forum
    • VaultWiki How-Tos
    • VaultWiki Questions
    • Modifying TOC

    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.

    Results 1 to 3 of 3

    Thread: Modifying TOC

    • Thread Tools
      • Show Printable Version
    1. April 5, 2021 #1
      unfairest
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      unfairest is offline
      Junior Member
      Join Date
      March 31, 2021
      Posts
      6
      Rep Power
      0

      Modifying TOC

      I don't like how a page's table of contents is contained in an entirely separate block from the main body of content; I'd like to float it to the side of the content or put it in the sidebar. However, the TOC itself is wrapped in block that don't allow me to target the TOC itself very easily in the CSS. I also couldn't figure out which template to modify to remove the surrounding block. How can I work with a more flexible TOC?

      EDIT: A better question is probably where can I edit the {$contents|raw} found in vw_general_view?

      Last edited by unfairest; April 5, 2021 at 2:00 PM.
      Reply With Quote Reply With Quote

    2. April 6, 2021 #2
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      688
      vw_general_view, for the most part, is a wrapper for the vw_node_shell template, which is the main layout template for wiki pages.

      TOC isn't contained in its own layout block by any force other than it automatically wanting to appear before the first heading. If you have other content before the first heading, or if you don't use H=1 as your primary heading (H=1 has equal weight to the page title), this usually looks fine. In this case, you can target it in CSS using nav.vw-toc-block

      For cases where you must use H=1 and you cannot have other content before the first heading, or if you just wish the style TOC at will:

      [TOC]NO[/TOC] // hides the default TOC
      [TOC][/TOC] // manually shows the TOC here
      [TOC]NO|[/TOC] // combined the two

      You can wrap it in BB-Codes like:
      [div] style="float: right" | [TOC][/TOC][/div]
      or throw it in your sidebar like:
      [div] position="sidebar" | [TOC][/TOC][/div]

      If you're just floating it, note that you may still be constrained to whatever block you're currently in, for phishing protection (H=1 always creates a new block). Floats may be further constrained to the current heading you're under, but you can change this in your Aesthetics settings: "Constrain floated and absolute content within sections?" If this is disabled, floats should ignore H=2+ boundaries.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    3. April 7, 2021 #3
      unfairest
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      unfairest is offline
      Junior Member
      Join Date
      March 31, 2021
      Posts
      6
      Rep Power
      0
      Fantastic, thanks!

      Related to the theme I noticed that the topbar, in the wiki only, is pushed down one pixel and has a gap where you can see the content on the other side. I haven't been able to figure out what's causing it. Any ideas?



      EDIT: Seems I solved this while playing with other styles!
      Last edited by unfairest; April 8, 2021 at 7:17 PM.
      Reply With Quote Reply With Quote

    Similar Threads

    1. Modifying <titles>
      By beernuts in forum VaultWiki Questions
      Replies: 2
      Last Post: August 22, 2013, 3:33 PM

    Tags for this Thread

    block, figure, target

    View Tag Cloud

    Bookmarks

    Bookmarks
    • Submit to Digg Digg
    • Submit to del.icio.us del.icio.us
    • Submit to StumbleUpon StumbleUpon
    • Submit to Google Google

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •  
    • BB code is On
    • Smilies are On
    • [IMG] code is Off
    • [VIDEO] code is
    • HTML code is Off

    Forum Rules

    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 6:55 AM.
    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.