Hello, first thanks for this very good snippet.
I have a (small) problem with path, I have added a gallery on a page, in the thumb page the [tt]src=""[/tt] attribute are relative:
[tt]<img src="assets/galleries/89/tn_photo_4.jpg" ...[/tt]
and it don’t find the image .
I can’t add a [tt]base href=...[/tt] due to lot of snippet, some using relatives links others absolutes.
If I modify the [tt]$path_to_galleries="assets/galleries/";[/tt] to
[tt]$path_to_galleries="/assets/galleries/";[/tt]
the thumbs are displayed but the links to the image are broken to [tt]
http://dp-site.fr//assets/galleries/89/photo_4.jpg[/tt] with a double [tt]/[/tt].
I don’t want hack your code (and perhaps I can’t
).
Is there a solution that works for everyone ?
edit:
bizarre the problem is just on my local site, with base href on my hosted site all is good.
Continue your good work, MODx is the best !