CMS MADE SIMPLE FORGE

Gallery

 

[#8063] image-thumbnail outputs double slash

avatar
Created By: Mizar (Mizar)
Date Submitted: Thu Jun 21 13:27:00 -0400 2012

Assigned To: Jos (josvd)
Version: 1.5.3
CMSMS Version: None
Severity: None
Resolution: Works For Me
State: Closed
Summary:
image-thumbnail outputs double slash
Detailed Description:
Using Gallery with latest colorbox template.
As I have errors in my output ( concerning thumbnail paths)
 I did a

<pre>
{$image|print_r}
</pre>
to inspect the image object.

I found that for the thumbnail it outputs something like 
path//image.jpg  (double slashes between path and filename) instead of
path/image.jpg

Can this be corrected somehow?
Thanks for caring


History

Comments
avatar
Date: 2012-06-22 03:56
Posted By: Jos (josvd)

Can you email me a csv-dump of the "module_gallery" table in your database. With
that I might be able to create a UDT for you that repairs the paths
      
avatar
Date: 2012-06-22 10:58
Posted By: Mizar (Mizar)

Thank you. Mail is sent.

Solution for now:
changed my template like so:
instead og writing
{image->thumb} I now have {$image->thumb|replace:'//':'/'}
      
Updates

Updated: 2014-08-08 14:36
resolution_id: 5 => 11
cmsms_version_id: 29495 => -1
state: Open => Closed

Updated: 2012-06-22 03:56
resolution_id: => 5