Skip to main content

Activity

commented on Adding a photo gallery.
Further to the fancyBox option, if you need to add titles to your jquery gallery load the images up via individual pages via something like
{% for page in tag.most_recent_published_pages_no_pagination }
<a href=“%7B%7B%20page.attachments.first.url%20%7D%7D” class=“swipebox” title=“{{ page.headline }}”><img src=“%7B%7B%20page.attachments.first.url%20%7D%7D” height=“200” width=“200”></a>
{
endfor }
then trigger your javascript, the above uses swipebox which is a nice mobile plugin. http://brutaldesign.github.io/swipebox/
which pulls the first file from all pages with a certain tag. i.e
{
tag “imagegallery” with “gallery” %}
posted 2016-08-30 23:39:15 -0700