• Resolved erminiadev

    (@erminiadev)


    Hi,
    I am trying to use the tag cloud functionality with an existing gallery I made with the plugin ‘responsive lightbox and gallery’ from dfactory. The shortcode for my gallery is [rl_gallery id=”268″], I tried to integrate it as seen below with parameters mla_alt_shortcode and mla_alt_ids_value, to no luck. Is this possible?
    If not, which supported gallery plugin could I use to make a masonry-type gallery?
    My second issue is trying to have all images appear by default (on page load) and then enabling the user to select the tags he wants with the cloud tags to narrow the images that appear. How can I shortcode this?

    For now, I am using the following shortcode:

    [mla_tag_cloud taxonomy=attachment_category number=0 mla_link_href=”{+page_url+}?term_slug={+slug+}” mla_margin=”5%” mla_alt_shortcode=rl_gallery mla_alt_ids_value=”268″]

    [mla_gallery attachment_category=”{+template:({+request:term_slug+}|a-bad-term)+}” mla_nolink_text=”Click a term to display the gallery.”]

    Thank you very much for your help!

    Marine

    • This topic was modified 6 years, 4 months ago by erminiadev.
Viewing 1 replies (of 1 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for your questions and for the details regarding the plugin and shortcodes you’re using; very helpful.

    I installed ‘responsive lightbox and gallery’ from dfactory and ran a few experiments. It’s a good plugin with lots of features and good documentation, but it uses its own database structures for galleries, folders and so forth. The lightbox feature works by adding HTML attributes to every image link it finds on a page/post (this can be disabled). With the plugin active I was able to build a simple [mla_gallery] to which the lightbox feature was automatically added.

    The [rl_gallery id="268"] shortcode displays a gallery with items selected by the plugin’s own gallery builder UI. It stores the items in its own database structures and uses the id= value to select the gallery for display. As far as I can tell this shortcode will not accept an ids= list with the items to display so it won’t work with MLA’s mla_alt_shortcode feature.

    You asked “If not, which supported gallery plugin could I use to make a masonry-type gallery?” Here’s an earlier topic with some suggestions:

    Slider gallery plugin

    If you can spend a modest amount, Justified Image Grid is excellent. You can also use MLA’s built-in support for the Photonic Gallery & Lightbox plugin. Here is a tag cloud and gallery example using Photonic for masonry display:

    [mla_tag_cloud taxonomy=attachment_category number=0 mla_link_href="{+page_url+}?term_slug={+slug+}" mla_margin="5%"]
    [mla_gallery attachment_category="{+template:({+request:term_slug+})+}" columns='auto' main_size='full' tile_size='full' style='masonry' mla_nolink_text="Click a term to display the gallery."]
    

    You also want “to have all images appear by default (on page load)“. The above shortcode does that by removing the |a-bad-term portion of the attachment_category= parameter. With this change, the parameter value will be empty until a tag is selected, and all items will be displayed. You could also substitute a default tag value for a-bad-term to begin the display with a filtered gallery.

    I hope that gets you started on a solution for your application. I am marking this topic resolved, but please post an update if you have problems or further questions regarding the above suggestions. Thanks for your interest in the plugin.

Viewing 1 replies (of 1 total)

The topic ‘‘responsive lightbox & gallery’ plugin and default cloud tags settings’ is closed to new replies.