1. REGISTRATION REQUIREMENTS:

    Register with your xenforo.com Username then 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.

Add "Number of Photos"

Discussion in 'Showcase Support' started by Joeychgo, Jan 14, 2016.

  1. Joeychgo

    Joeychgo Member AMS Premium SC Premium UBS Premium

    Is there a way to add "Number of photos" in a showcase? (see below image)

    Untitled.jpg
     
  2. Bob

    Bob Developer Staff Member

    You can try these, however, I do not think they are exposed outside of a prepared showcase item itself (if not, they will be in SC 2.6.0)
    {$item.image_attach_count}
    {$item.file_attach_count}

    For TEMP, you can use the attachment count: {$item.attach_count}

    template: nflj_showcase_layout_list_view_item

    scroll down till you find this
    HTML:
                    <xen:if is="{$item.last_update}">
                        <dl class="updatedStats">
                            <dt>{xen:phrase nflj_showcase_updated}:</dt>
                            <dd><xen:datetime time="$item.last_update" /></dd>
                        </dl>
                    </xen:if>
    Place this directly above it...
    HTML:
                    <dl class="updatedStats">
                        <dt>{xen:phrase nflj_showcase_images}:</dt>
                        <dd>{xen:number $item.attach_count}</dd>
                    </dl>
    When the next version of SC comes out, you can replace the attach_count data with image_attach_count data.
     
  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.