Feature Request: No Images Yet, Filter to hide Store_Nav

Bring Your Business to LifeSupportImage StoreFeature Request: No Images Yet, Filter to hide Store_Nav

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #139091
    jcharris
    Participant

    We would like to display several galleries with NO images. Ie. an excerpt, but with a custom ‘No Image On File Yet’.

    It’s easy to add a filter to do this, but, that leaves the UL imstore-nav-inner which makes no sense if there are no images.

    To hide that, I’m currently using jQuery, which requires more overhead.

    It would be nice if there was a filter at imstore-nav-inner so that one could add a no-display class to that UL if there are no image attachments. OR, if there was a body class ‘no-images’ which could be added automatically after the gallery is retrieved. I’m trying to cut down on SQL queries.

    Best of all, if there was a Setting under Galleries Option to call some custom HTML if no images are found.

    #144775
    Xpark Media
    Keymaster

    @jcharris,

    You can use the ims_after_get_galleries hook to get the count of images and modify the global $ImStore->pages

    I think you will still need to use another query outside the gallery

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.