1. REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Output Item ID in Item field's Value Display HTML

Discussion in 'Showcase Closed Suggestions' started by C.Birch, May 10, 2015.

  1. C.Birch

    C.Birch Member AMS Premium SC Premium UBS Premium

    Hi @Bob

    Right now in the item fields you can add the {$value} {$valueUrl} {$choice} {$fieldId} to the Value Display HTML, could an {$itemID} be added, so that a items id number can be placed into the value display html content.

    So for eg if the Showcase item 123 is viewed the value display html for that item would be
    HTML:
    <br><br><img src="http://www.yourpshome.net/img/ratingtitle.png" alt="Rating" />
    <div class="ItemContainer">
    <div class="Item">
    <div class="boxModelFixer"><b>Style</b><br>How do you rate the style and design of this space?
    <div id="rate_{$itemID}" align="center"></div>
    </div>
    </div>
    would be output as

    HTML:
    <br><br><img src="http://www.yourpshome.net/img/ratingtitle.png" alt="Rating" />
    <div class="ItemContainer">
    <div class="Item">
    <div class="boxModelFixer"><b>Style</b><br>How do you rate the style and design of this space?
    <div id="rate_123" align="center"></div>
    </div>
    </div>
     
    Last edited: May 10, 2015
  2. C.Birch

    C.Birch Member AMS Premium SC Premium UBS Premium

    I know {$item.item_id} can put outputted direct into a template via editing the template, so exposing that in the value display html would be handy.
     
  3. Bob

    Bob Developer Staff Member

    done.... you can now (next release) use {$itemId} for Item Fields Value Display HTML and {$itemId} & {$reviewId} in Review Fields Value Display HTML
     
    FloV, C.Birch and alfa1 like this.
  4. C.Birch

    C.Birch Member AMS Premium SC Premium UBS Premium

    Good work Bob :)
     
  1. This site uses cookies to help personalise content, 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.