1. April Fools Day Sale starting today through Sunday April 2nd.
    $15 discount on all licenses. $10 discount on 1 year support/downloads extensions.
  2. 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.

Add a link to Item thread in nflj_showcase_layout_grid_view_item

Discussion in 'Showcase Support' started by Ludachris, Jan 17, 2018.

  1. Ludachris

    Ludachris Active Member AMS Premium CAS Premium RMS Premium SC Premium UBS Premium

    Is this possible? I want to add a link to the Item's associated thread, if a thread exists. Not sure if it can be done without custom coding. I've tried it but can easily be doing it wrong. Here's the code I was using:
    Code:
    <xen:if is="{$thread}"><a href="{xen:link threads, $thread}">...
     
  2. Bob

    Bob Developer Staff Member

    $thread is not an available variable for an individual showcase item block on a listing page. The only thing available to use is the $item array, so you need to use $item.thread_id and $item like this...

    HTML:
    <xen:if is="{$item.thread_id}"><a href="{xen:link threads, $item}">Discuss this item</a>
     
  3. Ludachris

    Ludachris Active Member AMS Premium CAS Premium RMS Premium SC Premium UBS Premium

    I knew I was doing it wrong... thanks Bob, that worked.
     
    Bob likes this.
  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.