Pagination for galleries

Permalink Browser Info Environment
John, can your add-on be used to add a pagination to a gallery block, such as Deluxe Image Gallery for example?

Thank you,
Michael

Type: Discussion
Status: New
okapi
View Replies:
JohntheFish replied on at Permalink Reply
JohntheFish
It all depends on the gallery structure. Front End List Magic works by looking for a list or groups of elements that have a list-like repetitive structure.

Looking at the Deluxe Image Gallery ( http://www.concrete5.org/marketplace/addons/deluxe-image-gallery/... ) demo site ( http://jordanlev.com/deluxe-gallery-demo... ), this provides a div conatining divs for each image, so I would expect FELM to work happily with that, with the reservation that I have not actually tested this combination.

If it is unable to automatically detect the list like divs-in-div structure for Deluxe Image Gallery, you may have to set the selectors for the list container and elements explicitly in the edit dialog (so a little knowledge of jQuery or css selectors may be helpful to configure).

There are more details of setting these selectors in the documentation.

John
okapi replied on at Permalink Reply
okapi
Thank you for your fast reply, John!

I just gave it a try - and wow - it works very nicely with Deluxe Image Gallery! Cool! Your magic finally made a pagination for my favorite gallery come true! :)

This add-on is also very easy to configure as well as to style and customize with custom templates.

Unfortunately the W3 Validator shows errors and notifications for the frontend. Javascript and some other parts of the code are causing that. Is there a way to get rid of the validation errors concerning those produced by the inline javascript code?

EDITED: Sorry, that must have been caused by a problem with one of my firefox profiles and the HTML-Validator extension. With another firefox profile i'm getting only 3 Warnings. Sorry for my hasty comment.

Since this kind of pagination of course can't create real pages, but only hides parts of content from view, while actually all the images of the gallery have to get rendered at once, i think it would be nice to have a lazy loading feature, and maybe, for a smoother user experience, a fading in/out of the item groups when browsing. What do you think about that?

Thank you,
Michael
JohntheFish replied on at Permalink Reply
JohntheFish
Its important when test-viewing pages that use this addon to look at them when not logged in (as google will see the page) and also when logged in as a user who does not have front end access to the FELM block. They are the users you are editing the list for and where code validation is relevant.

Lazy loading would definitely be a backward step for this because, for visitors other than the list 'editor', it needs to hack the dom immediately after page load.

With the above in mind, can you either post or PM me a link for the site/page and for the validator report and I will have a look and see if there is anything that can be realistically done to improve w3 validation without detriment to the functionality of the addon.
okapi replied on at Permalink Reply
okapi
Thanks again for your speedy answer and for your explanation! I'm very happy with what i've got. I have sent you a PM with the link to my C5 test installation.
JohntheFish replied on at Permalink Reply
JohntheFish
With your edit, I now understand what you meant about lazy load. FELM cant change the loading of the list. The list needs to be fully loaded before FELM can work on it.

However, once FELM has paginated a list, the idea of a transition effect between pages of the list could be useful and I will add it to my ideas file for future updates.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.