Hello, all... this one has me stumped and I've been at it for days trying to figure out the issue.
On a previous site, done with MODx Revo 2.1.3, I had created an image gallery which worked great. It utilized the Gallery component for image management in the control panel and I had it using Thickbox (
http://jquery.com/demo/thickbox/ ) to pop up images on the front end. As a result, I've created a similar gallery on another site that uses Revo 2.2.1. I used the same exact code as that original site (which I'll show below).
The problem is that, although the large (full-size) gallery images are popping up fine in the front end, and the Thickbox effect is working okay when doing so, the thumbnail images are not appearing on the front end of the site or in the control panel, within the Gallery component. I have verified that:
1. The new 2.2.1 version site has 'Prepend Site URL to Thumbs' set to 'Yes'.
2. The new 2.2.1 version site has 'Timezone' set to 'America/New_York' which I'm told is correct.
3. Noted both sites have a tilde in the URL, so that is probably not the issue.
4. Both sites have user friendly URLs turned on. Tried unsuccessfully with it off, too.
5. ImageMagick is installed on the server containing the new, 2.2.1 version.
6. Gallery version is 1.5.0.
7. When I look at the system settings of both Revo versions and search on the word "gallery", the results do show some differences. For instance, compared with the old version, the new version adds these, although I don't know if these have anything to do with my problem:
gallery.files_path, which is set to [[++assets_path]]gallery/
gallery.files_url, which is set to [[++assets_url]]gallery/
Extension Packages, which is set to [{"gallery":{"path":"[[++core_path]]components/gallery/model/"}}]
The gallery on the site that is working (version 2.1.3) can be viewed here:
http://67.222.24.164/~hawkresort/weddings-image-gallery.html
The problem gallery (on version 2.2.1) can be viewed on this page:
http://108.160.154.121/~vtroofing/gallery.html.
When I look at the source code of both sites, the resulting source code is similar in each thumbnail, except that:
1. The new site's thumbnails have a div class of "gal-item-active"
2. The old working site's thumbnails have a div class of "gal-item"
Not sure if that has anything to do with the issue, but it was a difference that I had noted.
The way I built the thing on both old and new Revo versions is as follows:
1. Installed Gallery on the site.
2. The galItemThumb chunk contains this:
<div class="[[+cls]]">
<a href="[[+image_absolute]]" title="[[+name]]" rel="gallery" class="thickbox">
<img class="[[+imgCls]]" src="[[+thumbnail]]" alt="[[+description]]" />
</a>
</div>
...note that using the original galItemThumb code that came with Gallery resulted in the same problem, so this is probably not the source of the issue.
3. The galAlbumRowTpl (which I don't think plays a part with this gallery solution) stays the same with this:
<li[[+cls:notempty=` class="[[+cls]]"`]]><a href="[[~[[*id]]? &[[+albumRequestVar]]=`[[+id]]`]]">[[+showName:notempty=`[[+name]]`]]</a></li>
4. The Gallery call looks like this:
[[!Gallery? &album=`1` &thumbTpl=`galItemThumb` &rowTpl=`galAlbumRowTpl`]]
Again, not sure if the galAlbumRowTpl even plays a part in this gallery solution, but I left it in just to go along for the ride...it has no effect whether it is included or not.
5. Images were uploaded to the server (directories are writable) by way of the Gallery component in the control panel.
So....
Is there anything about Revo 2.2.1 you can think of that needs to be set to get the thumbnails to show in both the front end of the site, as well as the Gallery component of the control panel?
Thank you in advance.
///////////////////////////////////////
The new Revo 2.2.1 version site runs on PHP Version 5.2.17
The old Revo 2.1.3 version site runs on PHP Version 5.2.10
[ed. note: waizen last edited this post 14 years, 6 months ago.]