4levels / dmWidgetGalleryGridPlugin

Adds an image grid widget to your Diem project with Diem built-in jQuery.colorbox
http://4levels.org
5 stars 3 forks source link

Images with spaces in the name #1

Open badvoc opened 14 years ago

badvoc commented 14 years ago

Hi

When uploading images with spaces in the image name the larger image fails to load.

Badvoc

publicizer commented 13 years ago

the reason lies in _link () helper, which is the link_to () function, This plugin also uses _media () -> getSrc () which returns the file name with a space. Used syntax looks like this: _link (_media ('example file') -> getSrc ()) -> text ('example text') _link returns an error, because he got the url with a space.

Solution: the easiest way is: Instead of a _link helper, use the tag html < a href = "<? php echo _media ('example file') -> getSrc ()?>"> some text < / a>

solution is not pretty, but it will work