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!