I have been a long time MODX user. I like the image presentation snippets available in Evo. I have tried Revo a few times but getting Gallery to work as been frustrating as hell to say the least.
This week I am having another go at getting comfortable with Revo and Gallery. I found this ongoing tutorial (past 2 or 3 is done):
http://darrenjehan.me.uk/gallery-snippet-1.php and
http://darrenjehan.me.uk/gallery-snippet-2.php
I have followed along and have some of the gallery functions and styling done. Obviously this user has done extra work as his results differ from what I am getting? Not sure if this is the yet to be shown Part 3 or if he has altered the snippet code and or specific CSS?
This is what I have done so far...
* created two test albums.
* created a test gallery page with the following:
<h2>Gallery Albums</h2>
[[!GalleryAlbums? &toPlaceholder=`AlbumList` &rowTpl=`my-album-row-tpl` &albumCoverSort=`createdon` &albumCoverSortDir=`DESC` &thumbWidth=`50` &thumbHeight=`50` &thumbQuality=`100` &showName=`1`]]
[[+AlbumList]]
[[!Gallery? &toPlaceholder=`ImageThumbList` ]]
[[+ImageThumbList]]
[[!GalleryItem? &toPlaceholders=`1`]]
<img src="[[+galitem.image]]" alt="[[+galitem.name]]" />
[[+galitem.tags]]
* created a rowTpl called my-album-row-tpl (added to snippet call):
<div class="albumPreview">
<div class="thumbNail">
[[+cls:notempty=``]]
<a href="[[~[[*id]]? &[[+albumRequestVar]]=`[[+id]]`]]">
<img src="[[+image]]" alt=[[+description]]></a>
<h4>[[+name]]</h4>
</div>
</div>
This does work: If I click on my "Gallery" link in the navigation I get the Gallery system inside my content area div. My test two albums show:
** Issue 1: there is an icon showing for a missing image (circled in red). This code that is on my Gallery page is generating this icon:
[[!GalleryItem? &toPlaceholders=`1`]]
<img src="[[+galitem.image]]" alt="[[+galitem.name]]" />
[[+galitem.tags]]
If I remove or edit this piece of code it will remove the unwanted icon. But doing so also stops the full-size images from appearing on mouse clicks. It seems this code is required for Gallery to function? But what do I do about this annoying missing icon?
If I click on one of the two test galleries I get this:
Issue 2: That annoying img icon is still there! Also, I hate how the larger thumbnails are presented on the same row as the two icons for the test galleries? How do I customize this?
Issue 3: If I click on any of the gallery thumbs the full-size image is right up against the thumbnails. This looks really ugly. How do I move the expanded full image away from the row of thumbs? Do I need to create new divs that I can style or is there something I need to add in the snippet call? Do I change the Gallery CSS somehow?
I really wish there was a step by step documentation to building a Gallery system in Revo!
Thanks!