Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @squazz – To limit the number of galleries shown in an album you can simply edit the album to not include them, create a new album that does not include the galleries you do not want to display and use that “new” album, or when inserting the album display using the IGW you can exclude specific galleries using the Sort / Exclude panel.

    Thanks!

    – Cais.

    Thread Starter Squazz

    (@squazz)

    Yeah, I know that, but I’m also pretty sure that my userbase/customers will forget this at some point. Wrecking the layout.

    Plugin Contributor photocrati

    (@photocrati)

    @squazz – What are you expecting as their work-flow that would break the layout(s)?

    – Cais.

    Thread Starter Squazz

    (@squazz)

    @photocrati – I will take another point of view for a moment.

    I am working on this page: https://beta.musalaha.org/participants/children/

    What i want to do here is to show the 3 latest albums, not more.

    At the moment this is solved by the following code:

    $album = $nggdb->find_album($albumID);
                        if($album) {
                            foreach( $album->gallery_ids as $galleryid ){
                                $gallery = $nggdb->find_gallery($galleryid);
                                $galleries[$galleryid]['title'] = $gallery->title;
                                $galleries[$galleryid]['url'] = get_bloginfo('url') . 'participants/'. $eventCategory .'/galleries/?album=all&gallery=' . $galleryid;
                            }
                            $i = 1;
                            foreach($galleries as $category){
                                echo '<a href="' . $category['url'] . '">' . $category['title'] . '</a><br />';
                                if ($i++ == 3) break;
                            }
                        } else {
                            echo 'No galleries at this time, sorry :/';
                        }

    But I was wondering of NextGen Galleries had a way to do this, in stead of me having to code it myself.

    Plugin Contributor photocrati

    (@photocrati)

    @squazz – We do not have a “Recent Albums” display (which makes for a very interesting idea … well done!) so your approach could very well be one of the most appropriate.

    Can you share that code snippet above in the context of the complete template? A link to a “pastebin”, “Gist”, or something similar would be great.

    Thanks!

    – Cais.

    Thread Starter Squazz

    (@squazz)

    If you promise that it will be included in the free, and not the premium version, then yes ??

    Plugin Contributor photocrati

    (@photocrati)

    @squazz – This is a community forum and for the support of the NextGEN Gallery plugin hosted on WordPress. If you do not wish to share your template that is your choice.

    Thanks!

    – Cais.

    Thread Starter Squazz

    (@squazz)

    haha, I sure do will share my template. I just wanted to make sure that if you put it into the plugin, that everybody would get to use it ??

    Thread Starter Squazz

    (@squazz)

    Plugin Contributor photocrati

    (@photocrati)

    @squazz – That is completely understandable and would be best all around … but in the meantime your share will allow them to use it now.

    Thanks, again!

    – Cais.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Limit amount of galleries shown in a album’ is closed to new replies.