1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 Get full link of attachment in template

Discussion in 'XenForo Questions and Support' started by MOVSA, Nov 22, 2013.

  1. MOVSA

    MOVSA Member

    Currently, I'm adding the first attachment into og:image tag and I found this code in some tutorial

    Code:
    <xen:foreach loop="$firstPost.attachments" value="$attachment" i="$i" count="$count">
        <xen:if is="{$i} == 1 AND {$attachment.thumbnailUrl}">
          <xen:set var="$ogThumb">{xen:helper fullurl, $attachment.thumbnailUrl, 1}</xen:set>
        </xen:if>
      </xen:foreach>
    This code run well. However, $attachment.thumbnailUrl return the url to thumnail image while I want to get the url to the full image of attachment to make it bigger. Any suggestion for this?

    Thank you in advance.
     
    radenmas and EvilSS like this.
  2. radenmas

    radenmas New Member

    wow, since 2013 and no reply.

    now 2015 and i got the same problem as you. I need to get fullURL instead of thumburl
     
  3. radenmas

    radenmas New Member

Share This Page