• 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 Discussion
    • General Discussion
    • Customs Fields Code

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

    Thread: Customs Fields Code

    • Thread Tools
      • Show Printable Version
    1. November 10, 2024 #1
      OASS
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      OASS is offline
      New Member
      Join Date
      October 25, 2024
      Posts
      1
      Rep Power
      0

      Customs Fields Code

      I am trying to output the value from a custom fields in to some text on the page,

      Can anyone share the standard for to output the value from a specific customs fields,

      Thank you
      Reply With Quote Reply With Quote

    2. November 10, 2024 #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
      687
      According to the original discussion when the custom fields feature was being developed:
      Quote Originally Posted by pegasus

      VAR

      There is a new related option for the VAR BB-Code.

      Render a page's custom field:
      Code:
      [var]field|myFieldName[/var]
      Get the raw value for the page's custom field:
      Code:
      [var]field|myFieldName|raw[/var]
      Render a field from a different page:
      Code:
      [var]field|myFieldName|Prefix:PageTitle[/var]
      (add |raw to get the raw value)

      Note that when saving a page, values inherited from a template are not yet available to VAR, and cannot be made available -- there would be a chicken vs egg problem. This means you should not use VAR-field to retrieve values inherited from a template for certain purposes like: generating a link, defining a Wanted Category, passing to another template. In these cases, you must set a custom field value for the page itself in order for it to be available.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    Similar Threads

    1. Convert Legacy Code to BB-Code
      By Rik Brown in forum VaultWiki Questions
      Replies: 8
      Last Post: August 3, 2010, 2:29 PM

    Tags for this Thread

    customs, fields, output, page, specific

    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:39 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.