Support » Plugins » [Plugin: NextGEN Gallery] Insert ALBUMS LIST in a page

  • Hi guys.

    I need to have a list of the existent albums in a page.
    If possible, I want to extract the album NAME, and the list of inserted galleries with name+link, in a UL-LI code.
    It would be wanderful to add some code to NGG to also specify an image.
    Actually I will just do it with CSS.

    Do someone never did this?

    I’m asking because I’m going to code it this evening if this wasn’t done by no-one else.

Viewing 7 replies - 1 through 7 (of 7 total)
  • I did it 😉

    I taken some code from ngg-functions and some I created.
    I created a “%%ALBUMS%%” tag that, used in a page, creates dinamically a list of the albums with the galleries contained in them.

    The links still have some problems, but I’m working on it.

    You can see the plugin in action here:

    To work well I would need two new fields in the database, album table:
    – image for album preview
    – slug of the PAGE that links to the album

    Actually the albums link is, for example:

    Because I don’t know wich album links to wich page, I’m going to to that:
    if the name of the album is GIOIELLI IN VETRO, my plugin will link the album to:
    [actualpage]+”gioielli-in-vetro” (the slug for a page called like that).

    That is the html generated code, I like it very much and it’s very expandable with CSS:

    <div class="elan-ngg-albums">
    <ul id="elan-ngg-album-1" class="elan-ngg-album">
    <li class="elan-ngg-album-name">Gioielli in Vetro</li>
    <li><a href="/prodotti/?album=1&amp;gallery=1" class="elan-ngg-album-link">galleria A</a></li>
    <li><a href="/prodotti/?album=1&amp;gallery=2" class="elan-ngg-album-link">galleria B</a></li>
    <li><a href="/prodotti/?album=1&amp;gallery=3" class="elan-ngg-album-link">galleria C</a></li>
    <li><a href="/prodotti/?album=1&amp;gallery=6" class="elan-ngg-album-link">galleria F</a></li>
    <li><a href="/prodotti/?album=1&amp;gallery=7" class="elan-ngg-album-link">galleria G</a></li>
    <ul id="elan-ngg-album-2" class="elan-ngg-album">
    <li class="elan-ngg-album-name">Vasi in Vetro</li>
    <li><a href="/prodotti/?album=2&amp;gallery=4" class="elan-ngg-album-link">galleria D</a></li>
    <ul id="elan-ngg-album-3" class="elan-ngg-album">
    <li class="elan-ngg-album-name">Accessori in Vetro</li>
    <li><a href="/prodotti/?album=3&amp;gallery=5" class="elan-ngg-album-link">galleria E</a></li>

    Ok it works for me.

    You can look at

    To see what the plugin does.

    If someone is considering this plugin useful I will publish the entire code, after I polish it a bit.


    I’m not very talented with all this, but that is exactly what I need. It would be very appreciated if you shared how to do it.

    This is a great idea. I’m surprised this wasn’t in the original plug-in. Could you share the plugin you made with the community? I’ll help polish it for you.

    hi, Nokao. really looks good and is what I need, too, so I might like to use it, as well. perhaps it could be added to ngg some time 🙂

    Hi Nokao. Your plugin is exactly what i’ve been looking for. Just wondering how the development is coming along? Thumbs up!

    Hey Nokao, I’m waiting for you to publish the code, that’s exactly what I need!


Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: NextGEN Gallery] Insert ALBUMS LIST in a page’ is closed to new replies.