• The goal is to have gallery “a” be the default gallery on page “a”. With a side div acting as a menu on the page with several links that will ideally load a different Next Gen Gallery on the same page instead of the default one.

    Ive tried adding <div class="gallerymenu"><a href="[nggallery id=2]">Next Gallery</a></div> but no luck. Perhaps this is too simple of an approach? Instead it just loads the “next gallery” in the menu area.

    Any thoughts on how to do this? Ive seen it done via Javascript/PHP but I am not too familiar with either, though I am willing to learn if somebody can link me to tutorials, etc.

    Thanks in advance!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Libico

    (@libico)

    *update* I have also tried <div class="gallerymenu"><a href="<?php echo nggShowGallery(2) ?>">Next Gallery</a></div> with no luck. Still loads the gallery as oppose to showing link.

    Thread Starter Libico

    (@libico)

    *bump* Anybody? Or am I the only one even looking to do this?

    Maybe this could help you.

    The link to a specific gallery is just an addition of »?gallery=[id of the gallery]« to the current link of the gallery-page.

    In your case it would be:
    <div class="gallerymenu"><a href="?gallery=2">Next Gallery</a></div>
    That will load the gallery with the id=2 on the same page of the gallery “a”.

    Thread Starter Libico

    (@libico)

    Hey Paul,

    Appreciate the response and the attempt but still now luck. The url of goes to http://www.blah.com/?gallery=2 , but does not load the gallery. Any other thoughts perhaps?

    Thanks again

    Too bad you still have no luck with that.

    To make clear i got it right, you have some kind of album-page, where you want to show all your galleries (page “A”)? And on this page you want to have links to all (or only specific galleries), which should load on the same page (“A”)?

    How does the URL of the default gallery looks like?

    Thread Starter Libico

    (@libico)

    Hey yea I think we might be thinking of different things.

    As of right now it is just a page (Shirts) that I use the shortcode to load a gallery with: [nggalleryid=1] for isntance. (dont have it open infront of me) And on that page would like to have “links”(Diffent Brands) that will just load a different gallery instead of the one already loaded by default.

    Do you recommend doing this another way? Perhaps I have made it more complicated than necessary?

    My issue with the album page is that it shows all of the galleries, with a thumbnail from each gallery. Im trying to have a default gallery load, and than links to load the other ones on the same page. Hope this makes a bit more sense.

    Thread Starter Libico

    (@libico)

    By the way, the url of the default gallery is http://www.blah.com/test-page/

    Because I use shortcode to load the gallery I don’t believe any ?gallery=2 shows up.

    Thread Starter Libico

    (@libico)

    *UPDATE*

    Interestingly enough, I tried adding [album id=1 template=compact] to the page and now the links that you recommended above work like a charm. Now is there any way to have a default gallery preloaded instead of showing the list of all the galleries in the album?

    Much appreciated for all the help already!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: NextGEN Gallery] Link to load a different gallery on same page?’ is closed to new replies.