• Resolved GnorthernGnome

    (@gnortherngnome)


    Hi,

    I’m currently trying to set up a simple slideshow to pull in all images with a certain tag except when they are from a single gallery ID (i.e. id=’2′), as that gallery is not really for public use. I’ve come across the exclude options in the short code documentation, however it seems to only work with image ID’s and not anything else. Is this correct, or is there a way to do what I want?

    Also, on a slightly related note, can anyone tell me if it’s possible to have 2 custom gallery templates running on a skin? I have one set up perfectly, would like another but it doesn’t want to display?

    Cheers for the help!

    https://www.ads-software.com/plugins/nextgen-gallery/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @gnortherngnome – If you use the ATP to insert the gallery then you can use the Sort / Exclude panel to exclude those images you do not want shown.

    I’m not sure what you are referring to with “2 custom gallery templates running”, can you elaborate on this?

    Thanks!

    – Cais.

    Thread Starter GnorthernGnome

    (@gnortherngnome)

    @cais: Thanks for the reply.

    Unfortunately your suggestion won’t work for my purposes. I’m building the shortcode directly into the template for the pages that will form the backbone of a client’s website, so I can’t rely on the ATP ??
    Further, it isn’t individual images I’m wanting to exclude but an entire gallery. As I am wanting to display all images that use a certain tag in a slide show on the page (which works fantastically), but I have one gallery that should never be shown in those slideshows as it is linked to promotional material rather than public photographs. I also can’t pull the slideshow only from one gallery, as it needs to update on the fly with images added to future galleries (being a part of the template, it can’t be edited easily by the client).

    Also, don’t worry about the custom templates, I was worried using two was causing a conflict but it was an issue with a php loop within another part of the page! That part is sorted now ??

    tl;dr I need a way to exclude content on a gallery level, rather than individually by images. Is that possible?

    Unfortunately your suggestion won’t work for my purposes. I’m building the shortcode directly into the template

    @gnortherngnome you can exclude images also with shortcode identifying all the images of that gallery, e.g.: exclusions=”1,2,3,4″
    But I can understand that’s not practical if they are too many, or if the excluded gallery grows in future…

    Thread Starter GnorthernGnome

    (@gnortherngnome)

    @tizz: yeh, I’ve played around with that setting. It also doesn’t work for me because I’m using a template to serve multiple pages, so it needs to be as water tight and future proofed as possible. A gallery ID will never change, so that is what I need to use ?? Thanks for the reply though ??

    EDIT: Also, to be clear, the images in the slideshow are being pulled from multiple galleries, the only selector being used is a tag_ids one ??

    Plugin Contributor photocrati

    (@photocrati)

    @gnortherngnome – tl;dr – No.

    The other issue to take into consideration is that the tags parameter does not work as a “union” where all tags must be present for the image to be shown. If any tag is present the image will be included in the gallery.

    I would suggest as a work-around to use a specific tag for each instance of the shortcode you want to display (which I imagine could be very inconvenient) or ensure all of the image you do not want to display have no tags at all and then specify every tag you want to be used.

    If this was simply a common gallery it would be much easier, but due to it being tags it can become quite convoluted.

    – Cais.

    Thread Starter GnorthernGnome

    (@gnortherngnome)

    @cais: I’m aware it’s not the “usual” request ?? And I do have a workaround, but it’s not very elegant at the moment so thought I’d check.
    As for your suggestions, the tag_ids used are already singular. The idea is that the page slug is being injected into the shortcode using PHP; any images that are to appear on that page can then be easily sorted by the client by simply tagging them with the slug. However, some images may overlap the pages they’re needed on, so using tags is necessary to make sure they can be displayed in multiple places.
    The website is highly dynamic, it’s a portfolio of an events company, so every new event needs to have a new page and each event page will have photos from different years uploaded (therefore tagged to the same event hub page, but potentially displayed per year on other pages as well).

    That said, it seems there is no current way to do this? I knew it would be a long shot, but given that excludes allows for subalbums to be referenced (plus given the wealth of short code attributes not in the official documentation) I was hoping it was available somewhere to just set excludes: g_2 or something ??

    EDIT: Oops, sorry missed your first sentence ?? So it isn’t possible, any idea if this is a feature that may be added in the future? And thanks for all your help, other than this small issue the customisation of the plugin is fantastic so props to all involved ?? I will be rating shortly and very highly, definitely using it in some other builds I have coming up ??

    Plugin Contributor photocrati

    (@photocrati)

    @gnortherngnome – It was definitely well worth asking. I spent the last little while trying various different ideas and none seem to work in the way you are describing what you are trying to accomplish, especially withe “dynamic” aspect of it.

    I’ll run this idea by the rest of our Support Team (and developers when they next come up for air) but no one has offered anything I haven’t already tried.

    – Cais.

    Plugin Contributor photocrati

    (@photocrati)

    @gnortherngnome – I caught one of our developers taking a break and asked them about this … he was not able to think of anything either but did suggest it would make for a great Feature Request.

    If you wouldn’t mind, we’d really like to get your thoughts and ideas on this whole idea on our Feature Request form, here: https://www.nextgen-gallery.com/feature-voting/

    Thanks, again!

    – Cais.

    Thread Starter GnorthernGnome

    (@gnortherngnome)

    @cais – Thanks for the fantastic support with this ??

    I’ll pop on over to the Feature Request right now and outline my concept for implementation ?? Great to see a company promoting that feature ??

    Thread Starter GnorthernGnome

    (@gnortherngnome)

    Feature request sent ?? I’m marking this as resolved as I don’t believe there’s anywhere else to go from here ?? Thanks again!

    Plugin Contributor photocrati

    (@photocrati)

    @gnortherngnome – Thank you very much for the kind words and adding your ideas as a Feature Request. We really appreciate this sort of feedback from the community.

    – Cais.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Exclude settings for shortcode help’ is closed to new replies.