NGG get album from gallery
-
Hello Guys,
I am using an adopted verison of the ngg sidebar widget; I am trying to figure out how to link the preview-images to the gallery without having to set a static link to a page in the NGG gallery.
The link is something like this:
https://www.mywebsite.com/fotos/nggallery/albumname/galleryname
Thus, I need to figure out the name of the album corresponding to the gallery. In other words, I do have the name of the gallery, but not of the album. Therefore, I am wondering: Is there a function of the NGG gallery that I could inherit or call in order to figure that out?I also looked at the NGG Album page to see how the links to the galleries are generated and it is done like this:
echo nextgen_esc_url($gallery->pagelink)
However, I can’t use this in the ngg sidebar-widget, because I do not have a real ngg-gallery-class-object.Would appreciate your thoughts/help with this matter.
Raphi
- The topic ‘NGG get album from gallery’ is closed to new replies.