1. This demo is the XF1 version of AMS (AMS 1.6.8).

    A demo for the XF2 version of AMS (AMS 2.0.0) can be viewed HERE

How to place custom Item Fields in templates?

By Bob · Apr 27, 2013 · ·
  1. Bob
    Here is an example on how to use custom fields in Showcase 2.0.0

    This example uses the new HELPERS (Field Title and Field Value). selfplace1 = the custom field ID for this example
    HTML:
    <xen:if is="{$item.customFields.selfplace1}">
        <div class="customShowcaseFields tab1">
            <dl class="customShowcaseFieldselfplace1">
                <dt>{xen:helper showcaseFieldTitle, 'selfplace1'}:</dt>
                <dd>{xen:helper showcaseFieldValue, $item, 'selfplace1', {$item.customFields.selfplace1}}</dd>
            </dl>
        </div>
    </xen:if>
    This is how you'd use the RAW field value
    HTML:
    {$item.customFields.selfplace1}
    This is how you'd use the helper formated field value only.
    HTML:
    {xen:helper showcaseFieldValue, $item, 'selfplace1', {$item.customFields.selfplace1}}

    Share This Article

    cdub likes this.

Comments

  1. Isxforo
    Hi, @Bob .
    I thought this ask would be put here. :rolleyes:

    Could you guide the customReviewFields syntax for Self Placement too?
  2. toodlez
    testing!
To make a comment simply sign up and become a member!
  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.