ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Image upload

August 22, 2007 10:02am

Subscribe [2]
  • #1 / Aug 22, 2007 10:02am

    Grinstead

    31 posts

    I apologise, I’m sure this has been discussed before.

    Basically I’m following this… http://ellislab.com/forums/viewthread/58994/ but with Highslide rather then Lightbox

    The code…

    <a href="{full_size_url}" class="highslide" onclick="return hs.expand(this)">{images}</a>

    The image thumbnail tag is the custom field {images}, I now need to get the full size image url in the {full_size_url}

    Is this possible?

    Many thanks

  • #2 / Aug 23, 2007 7:47am

    Grinstead

    31 posts

    I’m guessing this isn’t possible?

    So the alternative is to do it manually? All I need is to some how find a way to extract the file and losing the _thumb!


    Thanks

  • #3 / Aug 23, 2007 12:45pm

    Robin Sowell

    13255 posts

    Do you have the full size image and the thumb both in their own custom fields?  If so- your example should work.  It assumes the full size image is in a custom field called full_size_image - and that the field has formatting ‘none’ and that you’ve just got the full url to the image in there.

    In short- it’s definitely doable, but it’s going to depend on how you’ve set things up.

  • #4 / Aug 23, 2007 1:07pm

    Grinstead

    31 posts

    Thanks Robin.

    No I did consider having separate custom fields for full-size and thumbnail, I was hoping there was a way that an image could be uploaded and the thumb would then be placed in a custom field, from that custom field the url for the full-size image could be extracted, some how removing ‘_thumb’

    Anyway I’ve ended up manually doing it, basically added pre & post formatting with a blank between the ahref quotes, then manually add the full-size image url.

    Make sense!! (didn’t think so 😊)

    Thanks again for replying.


    Michael

  • #5 / Aug 23, 2007 1:24pm

    Robin Sowell

    13255 posts

    LOL- yep, makes good sense.  As long as it works- all is good.  (If not- should be able to do it with php turned on, parsed on ‘output’- strip off the .whatever).  I do something similar, but rolled a module for it- creates the extra images on the fly, then just puts the base file name sans extension in the field.  But- that only works if you know the extension will always be the same- which we do, so we went with it.

  • #6 / Aug 23, 2007 6:19pm

    stinhambo

    1268 posts

    I did come up with a hack to add this kind of functionality and use the inbuilt EE thumbnail producer.

    If you are using the latest build then the code to insert the correct thumbnail and fullsize image isn’t necessary.

  • #7 / Aug 23, 2007 6:39pm

    Grinstead

    31 posts

    Great stuff, I shall give it ago. Thanks stinhambo.


    Michael

  • #8 / Aug 23, 2007 10:19pm

    stinhambo

    1268 posts

    No problems Michael. Let me know if it worked out ok!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases