Support » Plugin: Photonic Gallery & Lightbox for Flickr, SmugMug, Google Photos & Others » Displaying categorized images in Photonic Gallery

  • Resolved rbrterzn

    (@roberterzen)


    Hi,
    I will have a lot of images in Media library which will be categorized with Media Library Assistant. Each image will be in one or more catgories.
    As far as I was able to see, Photonic can only display statically defined images from Media library.
    How could I display all images from category e.g. “fruits” in Photonic?
    Thanks.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Sayontan Sinha

    (@sayontan)

    You might want to ask David at MLA regarding this, as MLA has inbuilt support for Photonic.

    Plugin Author Sayontan Sinha

    (@sayontan)

    I see that you had opened a thread on the MLA forum and you were redirected here as an option to use for layouts. I am guessing that your post here is a follow-up to that support topic.

    My understanding is this: you will not be able to use Photonic’s shortcode builder (the interactive screen-by-screen selection tool) to build an MLA gallery, but you should be able to pass Photonic’s parameters to MLA. So, if you are constructing a gallery using MLA, you should be able to tell it to use the style='masonry' parameter of Photonic and construct your layout suitably. Effectively you will be using MLA to generate your content and Photonic to lay it out.

    Thread Starter rbrterzn

    (@roberterzen)

    Hi Sayontan,

    Thanks for a response.
    Yes I did asked a question about this on more than one support webapages.
    In the end I figured it out myself with some help from Media Libraray Assistant documentation.
    If anyone in the future would need it, here it goes:
    1. Install MLA, fill in some media files into the library and categorize media files
    2. Create a MLA shortcode which will make a desired selection of media files out of library. E.g. [mla_gallery attachment_category=’fruits’ orderby=date order=DESC]
    3. Install Photonic plugin and define Custom shortcode for Photonih gallery e.g. great_gallery
    4. Create a Gutenberg Photonic gallery with desired media files, settings and other. You get a shortcode e.g. [great_gallery ids=’30391,30390,30389,30388,30387,30386,30385,30384,13,11,10,30351,30350,30348,39,38,37,36,35,34,33,32,31,30,29,28,26,24,23,22,20,18,17,16,15,12,14,30353,30394,30393,30392,30702,30701,30700,30619′ columns=’auto’ more=’More’ main_size=’full’ tile_size=’full’ style=’masonry’ fx=’fade’ strip-style=’thumbs’ controls=’hide’]
    5. Then you merge take Photonic shortcodes and change it this way:
    – Remove great_gallery from Photonic shortcode and replace it with mla_shortcode
    – Remove ids=’…’ part and replace it with attachment_category=’fruits’ orderby=date order=DESC
    – Right after this you add mla_alt_shortcode=great_gallery This parameter shift control from MLA to Photonic which then process the rest of parameters.
    The final shortcode looks like:
    [mla_gallery attachment_category=’fruits’ orderby=date order=DESC mla_alt_shortcode=great_gallery columns=’auto’ more=’More’ main_size=’full’ tile_size=’full’ style=’masonry’ fx=’fade’ strip-style=’thumbs’ controls=’hide’]
    When you use this, you get (I got) beautiful mix of MLA and Photonic functionality.
    What we actually did here is we used MLA for categorizing and querying function and Photonic for presentation function.
    Hope it will help someone.

    Plugin Author Sayontan Sinha

    (@sayontan)

    Many thanks for the details!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Displaying categorized images in Photonic Gallery’ is closed to new replies.