• 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
    • Feature
    • Ifexist function

    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: Ifexist function

    • Issue Tools
      • View Changes
    1. issueid=2860 September 4, 2012 11:32 AM
      JesterP JesterP is offline
      Junior Member
      Ifexist function

      Allows for us to see what pages have aspects that still need some work and what pages don't. In addition, it can allow us to make decisions based upon whether a page exists or not within templates.
    Issue Details
    Issue Number 2860
    Issue Type Feature
    Project VaultWiki 4.x Series
    Category BB-Code Parsing
    Status Implemented
    Priority 7 - Minor Features / Enhancements
    Suggested Version 3.x
    Implemented Version 4.0.0 Gamma 4
    Milestone VaultWiki 4 Gamma X
    Software DependencyAny
    License TypePaid
    Votes for this feature 0
    Votes against this feature 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. March 7, 2014 9:21 PM
      pegasus pegasus is offline
      VaultWiki Team
      As of Gamma 4, you can use [var]id|Page Name[/var] to get the database record ID for a given page. It will return 0 if the page doesn't exist. Simply use this as the condition in your if construct to make an if-exists equivalent.

      If legacy markup support is enabled, Gamma 4 automatically converts
      Code:
      {#ifexist: Page Name | exists | doesn't exist}
      to
      Code:
      [if="[var]id|Page Name[/var]"] exists [else /] doesn't exist [/if]
      This particular method was chosen because the ID itself is more useful than simply knowing if the page exists. With the ID, you can apply the page in form data or find other uses for it.
      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 10:12 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 © 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.