hide / show slides based on tags (attached as classes to the images)

tomhermans's Avatar


18 Oct, 2012 03:53 PM

I built my own custom RS-template that pulls images from a db, and adds a tag.
I want to be able to put a filter-nav above with which I can select which tags(meaning the images carrying that tag) are shown ?

anybody else did this already or know how ?

Cause if I do this now, I just get an empty slide, since the absolute position needs to be recalculated..


echo '<div class="royalSlide ' . $tag_class . '">';
echo '<img class="royalImage rsImg" src="'. $imagefilename .'" alt="'. $imgalttext .'" />';
echo '</div>';
  1. Support Staff 1 Posted by Dmitry Semenov on 19 Oct, 2012 07:42 AM

    Dmitry Semenov's Avatar


    This might be very complex to make, especially if you have many slides.

    The best way is when you change filter, simply destroy old gallery and create new with new filtered elements.


Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac