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.

Insert Image in to Showcase Entry?

Discussion in 'Showcase Support' started by nrep, Nov 2, 2014.

  1. nrep

    nrep Member Showcase

    I've uploaded some files to a showcase entry, but I can't see an easy way to insert one of the uploaded images directly into the showcase (except for manually copying/pasting the URL). Is that the only way, or am I missing a way to allow uploaded images to be inserted in to the showcase (as well as appearing in the gallery)?
     
  2. Bob

    Bob Developer Staff Member

    The Image uploads in showcase is only for the Gallery (not to embed in the body of content like a post). There is a specific reason for this. I've already mentioned in other posts about this, that it will most likely be changing when I do the XF 2.0 re write.
     
    nrep likes this.
  3. nrep

    nrep Member Showcase

    Thanks, I did some searching and found your post on the subject. Co-incidentally, I'm not using any secondary tabs on this showcase, so I've made some changes to the code which seem to work as long as I've only got the one editor.

    Glad to hear Showcase is going to continue to improve with XF 2.0 :). It's my favourite add-on by far.

    From this:
    Code:
    <div class="controls">
    <input type="button" value="{xen:phrase delete}" class="button smallButton AttachmentDeleter" data-href="{xen:link 'showcase/attachment/delete', $attachment}" />
    </div>
    to this:
    Code:
    <div class="controls">
    <input type="button" value="{xen:phrase delete}" class="button smallButton AttachmentDeleter" data-href="{xen:link 'showcase/attachment/delete', $attachment}" />
    <xen:if is="{$attachment.thumbnailUrl}">
    <input type="button" name="thumb" value="{xen:phrase thumbnail}" class="button smallButton AttachmentInserter" />
    <input type="button" name="image" value="{xen:phrase full_image}" class="button smallButton AttachmentInserter" />
    </xen:if>
    </div>
    
    edit: Ah, it looks like this means that any images inserted in to the article will not show in the gallery :(. Going to see if I can find a way around that.
     
    Last edited: Nov 3, 2014
  4. Bob

    Bob Developer Staff Member

    Ya, that is a core XF thing. I don't think that can be modified easily.
     
  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.