• 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
    • Does VW have __FORCETOC__ or equivalent?

    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 5 of 5

    Thread: Does VW have __FORCETOC__ or equivalent?

    • Thread Tools
      • Show Printable Version
    1. December 6, 2010 #1
      Alfa1
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Alfa1 is offline
      Distinguished Member
      Join Date
      September 26, 2007
      Posts
      584
      Rep Power
      257

      Does VW have __FORCETOC__ or equivalent?

      In Nuwiki it was possible to force a TOC even if the minimum number of chapters in an article was not met. Does VW have something similar? FORCETOC is not working anymore after the import.
      Reply With Quote Reply With Quote

    2. December 6, 2010 #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,934
      Blog Entries
      18
      Rep Power
      659
      Code:
      [toc]FORCE[/toc] // forces the TOC if there is at least 1 headline
      [toc]NO[/toc] // hides the TOC unless FORCE was used
      [toc][/toc] // inserts the TOC here
      [toc]BOOK[/toc] // if the article is in a book, merge the headlines with the book's TOC
      [toc]NONUM[/toc] // don't number the items in the TOC
      You can combine multiple parameters using the pipe | character like so:
      Code:
      [toc]FORCE|BOOK|NONUM[/toc]
      // show the TOC all the time, merge with the Book TOC, and don't number the list
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    3. December 6, 2010 #3
      Alfa1
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Alfa1 is offline
      Distinguished Member
      Join Date
      September 26, 2007
      Posts
      584
      Rep Power
      257
      What is the query to replace all mentions of

      Code:
       __FORCETOC__
      to:

      Code:
       [toc]FORCE[/toc]
      Why does the importer not handle this?
      Reply With Quote Reply With Quote

    4. December 6, 2010 #4
      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,934
      Blog Entries
      18
      Rep Power
      659
      If the importer didn't do this, it was a bug. The importer doesn't do this at the database level, but at the parser level. Doing it at the database level is a bad idea in terms of performance.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    5. December 6, 2010 #5
      Alfa1
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Alfa1 is offline
      Distinguished Member
      Join Date
      September 26, 2007
      Posts
      584
      Rep Power
      257
      Then it is a bug.
      Reply With Quote Reply With Quote

    Tags for this Thread

    after, anymore, article, book, chapters, character, code, database, did, does, doing, equivalent, force, forcetoc, have, idea, import, list, number, nuwiki, possible, show, some, something, the, time, toc, was, working

    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 3:50 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 © 2023 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2023 DragonByte Technologies Ltd.
    Copyright © 2008 - 2013 VaultWiki Team, Cracked Egg Studios, LLC.