WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: NextGEN Gallery] Insert ALBUMS LIST in a page (8 posts)

  1. Elan42.com
    Member
    Posted 5 years ago #

    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.

  2. Elan42.com
    Member
    Posted 5 years ago #

    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:
    http://www.tagvenezia.com/prodotti/

    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:
    http://www.tagvenezia.com/prodotti/gioielli-in-vetro/

    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>
    <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>
    <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>
    </ul>
    </div>
  3. Elan42.com
    Member
    Posted 5 years ago #

    Ok it works for me.

    You can look at
    http://www.tagvenezia.com/prodotti/
    http://www.10mgvenezia.com/prodotti/

    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.

    Bye

  4. LTAcosta
    Member
    Posted 5 years ago #

    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.

  5. sumdog
    Member
    Posted 5 years ago #

    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.

  6. sophie n.
    Member
    Posted 5 years ago #

    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 :)

  7. spef
    Member
    Posted 5 years ago #

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

  8. ilpeo
    Member
    Posted 4 years ago #

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

    Ciao!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.