@thombrooks – The “Link to page” option is used when displaying galleries within an album and sets the gallery preview image’s link. This option is not used to generate any sort of listing of images as is.
Thanks!
– Cais.
Yes, after digging around and googling, I came to understand what the *intent* was for this field/drop-down menu. I tried to replicate it myself (by making a gallery and setting the drop-down menu, then making an album and dragging the gallery into it), but when I previewed it, I got the ‘no images were found’ message.
It appears that there may be a bug in the code(?) because on the documentation page it appears to be broken also:
Look at step 2 under ‘ADD ALBUM TO PAGE/POST’, where it says, “Compact will display like this:” and “Extended will display like this:”
Regardless — I am still curious to know how hard it would be to ‘hack’ this in order to add new functionality as I describe above. If we could use source=”pageid” then I think it would make it very easy to create custom per-page galleries, but only have to use one generic shortcode in a site-wide primary sidebar to display those thumbnails. Can you offer any help or suggestions?
Thank you!
@thombrooks – We generally do not recommend hacking the code base and although the idea is interesting it will likely start to become complex as one digs into it.
At the moment, off the cuff so to speak, you would have to “hack” into the code delivering the source parameter values to be able to use a page_id
value; then you would like need to parse the page content (which may create other issues depending on what is happening in the content area and/or if other shortcodes are being applied to the content as well). To locate the gallery and from there continue on from that reference to use that gallery ID as the source (which takes the shortcode back to using the gallery_ids parameter if you are using a display type that uses that source type).
It may be possible, it may also be better to consider a completely new display type as well which one of our developers has created a tutorial of articles to assist with that. Here is a link to where they start: https://0x18.us/creating-a-new-nextgen-display-type/
Thanks!
– Cais.