EllisLab text mark
Advanced Search
     
File manager thumbnail short names not working in templates.
Posted: 27 September 2011 07:39 PM   [ Ignore ]
Joined: 2011-03-15
12 posts

I’ve created some custom thumbnail with the new uploads preferences in the file manager, uploaded an image and have created that thumb image.  But when I use the short name as a variable in a template… nothing happens.  Is there some special way to display these custom thumbnails that I’m missing or isn’t shown in the user guide? All the user guide says in regards to this is “put the short name in your template and it works!” which doesn’t seem to be the case.


Example code:

{exp:channel:entries channel="gallery_images" dynamic="no"}
thumbnail
{listing} <br/>
source img{gallery_img}
{exp
:channel:entries} 

The {listing} is the thumbnail short name and does nothing, but the source image brings up it’s file path normally.

 
Posted: 27 September 2011 08:02 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Joined: 2011-03-15
12 posts
{gallery_img}{path}_listing/{filename}.{extension}{/gallery_img} 

This code above kind of works, but explodes with PHP errors when used in related entries.  which I need to display that specific modified thumbnail for this particular listing.

 
Posted: 28 September 2011 10:47 AM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Avatar
Joined: 2008-01-31
4773 posts

BlinkUX,

I think this may still be an error in our docs. Check my suggestion here to see if that works for you. Also, be sure you’re this thumbnail variable inside the File Tag.

 Signature 

Need some help? | Current Versions: EE 2.6.1 // MM 1.2.1

 
Posted: 28 September 2011 11:50 AM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Joined: 2011-03-15
12 posts

Thanks for the suggestion, that helps a lot.

 
Posted: 28 September 2011 01:07 PM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Joined: 2011-03-15
12 posts

I have another issue with the file manager at the moment.

I’m unable to upload images from the file manager page itself, clicking the upload files button does nothing but refresh the page.

 
Posted: 28 September 2011 01:30 PM   [ Ignore ]   [ # 5 ]   [ Rating: 0 ]
Avatar
Joined: 2006-04-15
12649 posts

Hi BlinkUX,

There is a bug report about this located here - https://support.ellislab.com/bugs/detail/16322

There is also a hot-fix in that report which should hopefully get this up and running for you. That or you can wait for the release of the next version of ExpressionEngine where this will be fixed up.

Hope that helps a bit.

Thanks,

Mark

 Signature 

Shopping Cart Plugin | Full List Of Add-Ons | About Me
——————————————————————————————
2.x Bug Tracker | Upgrade Errors