Bring Your Business to Life › Support › Image Store › Feature Request: No Images Yet, Filter to hide Store_Nav
- AuthorPosts
- June 3, 2014 at 1:46 pm #139091jcharrisParticipant
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.
June 8, 2014 at 11:20 pm #144775Xpark MediaKeymasterYou 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
- AuthorPosts
- You must be logged in to reply to this topic.