Need a little help probably me missing something,
I am following this tutorial
http://www.sitsol.be/blog/modx-gallery-albums
The GalleryAlbums snippet works perfect using following code on page id71 showing my 3 test albums:
[[!GalleryAlbums? &rowTpl=`GalleryrowTpl` &toPlaceholder=`galleries` &prominentOnly=`0`]]
<div class="css-wrapper">[[+galleries]]</div>
GalleryrowTpl
<div class="span4 item">
<a class="preview" href="[[~103]]/?[[+albumRequestVar]]=[[+id]]" title="[[+name]]">
<img src="[[+image]]&w=320&h=240&zc=1" alt="[[+name]]">
</a>
<h4>[[+showName:notempty=`[[+name]]`]]</h4>
</div>
Problem is when these album thumbnails are clicked they take me to my custom 404 page.
The page that should show the album images is page 103 and it has the following code on it
[[!Gallery? &toPlaceholder=`gallery` &thumbTpl=`GalleryrowTpl2` &thumbWidth=`200` &thumbHeight=`160` &thumbQuality=`80`]]
<div class="row">
<div class="text-title">
<h3>[[*longtitle]]</h3>
<div><h4>[[+gallery.description]]</h4></div>
<a href="[[~[[*parent]]]]"><button type="button" class="btn">back to overview</button></a>
</div>
<div class="css-wrapper">
[[+gallery]]
</div>
</div>
GalleryrowTpl2
<div class="span2 item2">
<a class="preview" href="[[+image_absolute]]" title=" " rel="prettyphoto[pp_gal]">
<img src="[[+thumbnail]]" alt=" " class="img-rounded">
</a>
</div>
The url from the Gallery Albums thumbnails is like this:
http://mysite.co.uk/gallery-1.html/?galAlbum=1
That is linking to the correct page of id 103 alias gallery-1 if I remove the /?galAlbum=1 from the end of the url the page loads fine minus the gallery pictures but with that added it defaults to my 404 page.
I tested the snippet with this
[[!Gallery? &album=`Album 1`]]
That output thumbnails fine but it cant seem to read info via the URL. I have friendly url turned on dont think that should be an issue.
I am using Revo 2.3.1 and gallery is 1.7.0
Have i missed something or does the above look correct.
Thanks
Ian
[ed. note: panfire last edited this post 9 years, 6 months ago.]