• 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
    • Template pulling wrong PAGENAME variable

    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: Template pulling wrong PAGENAME variable

    • Issue Tools
      • View Changes
    1. issueid=4345 July 17, 2015 6:28 PM
      Gossamer Gossamer is offline
      Junior Member
      Template pulling wrong PAGENAME variable

      I created a simple infobox template and included [*var]PAGENAME[/var] in it. However, when I pull the template into a page, it replaces PAGENAME with the name of the template instead of the name of the page it was placed on.

      Can it be fixed so that variables placed on templates look at the variable of the page the template is called on?
    Issue Details
    Issue Number 4345
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Templates
    Status Fixed
    Priority 5 - Minor Bugs / Small Tweaks
    Affected Version 4.0.5
    Fixed Version (none)
    Milestone (none)
    Software DependencyXenForo 1.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. July 18, 2015 12:15 PM
      pegasus pegasus is offline
      VaultWiki Team
      Confirmed also on vBulletin here: https://www.vaultwiki.org/demo/Pagename-test
      The content should read: Pagename test
      Instead it reads: Pagename

      Pagename test uses a simple template called "Pagename" with the following contents:
      Code:
      [var]PAGENAME[/var]
      Reply Reply
    2. July 18, 2015 12:40 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed in the next build.

      In vault/core/model/parser/sideways/template/xf.php, find and remove:
      Code:
      $this->_parser->item = $template;
      As far as I can tell this code is completely unnecessary where scoping the template is concerned. It's possible it is leftover from a really early version of the templater in VW3 that may have borrowed code from VW3's synonym system.

      After making this change you may have to clear the wiki's post cache before you can see the corrected behavior.
      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:45 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.