• Resolved xanuex

    (@xanuex)


    Hi,

    Got another question, is it possible to get an overview of all the albums then go to the galleries and then go to the pictures?

    So far I found the tags
    [album=1] which gives you an overview of the galleries
    and
    [gallery=1] which gives you the opportunity to display all the pictures in that gallery

    what I would like is an overview of all the albums that I’ve made.

    thanks in advance!
    Marcel

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hm, just use [album=1,extend] or [album=1] where 1 = the ID of you ralbum. Then create galleries and drop them in that ALBUM, then all your galleries containing images should be displayed under the page where you have set [album=1].

    Don’t really see your problem but i hope i was helpful. ??

    Thread Starter xanuex

    (@xanuex)

    but what if I have multiple albums with different galleries ???

    for instance…
    I like to travel and for each country I like to add photo’s per city.

    Netherlands [A]
    – Amsterdam [G]
    – Rotterdam [G]
    Germany [A]
    – Berlin [G]
    Spain [A]
    – Barcelona[G]
    – Sevilla [G]

    Now I’d like a gallery page which automatically shows the albums NE/GE/SP and when I select an album it shows its galleries NE -> A’dam/R’dam and when I select a gallery it shows its pictures.

    Just use
    [album=1]
    [album=2]
    [album=3]
    [album=4]

    etc.. on the same page and customize the output for each album? Something like;

    <div class="album">
     <h3><a href="#" rel="showmore">Album title</a></h3>
     <div class="more">
     <div class="gallery1">GALLERY 1 CONTENTS</div>
     <div class="gallery2">GALLERY 2 CONTENTS</div>
     <div class="gallery3">GALLERY 3 CONTENTS</div>
     </div>
    </div>
    
    <div class="album2">
     <h3><a href="#" rel="showmore">Album title 2</a></h3>
     <div class="more">
     <div class="gallery1">GALLERY 1 CONTENTS</div>
     <div class="gallery2">GALLERY 2 CONTENTS</div>
     <div class="gallery3">GALLERY 3 CONTENTS</div>
     </div>
    </div>

    Then slap on a script to “showmore” so that when one click for let’s say “Netherlands” a script slides down the galleries for “Netherlands”. You can use mootools + fxSlide or some jQuery script for that, it’s kinda straight forward.

    OR if you want it even simplier you can just create sub-pages for a page and use WP’s built-in system for displaying sub-pages on the “main page”, the sub-pages of course being things like “Netherlands”, “Germany” etc. On each sub-page you simply just include the corresponding Album.

    /your-gallery-page/netherlands/ = netherlands album + it’s galleries etc.

    Each album will then simply be a sub-page and child of “your-gallery-page”.

    Edit: The mootools / jquery -solution is a bit cooler and faster for users to browse your albums, however be warned that it actually will load every gallery-thumbnail so it may tax your gallery-page a bit if you have a thumb-per-gallery and if those thumbs weigh too much (setting it at 60% quality instead of 90% is a good idea for example).

    Hope you find my quite messy post usable in some way. ??

    Thread Starter xanuex

    (@xanuex)

    lol, your messy post is indeed quite useful although I was hoping for a build-in piece of code. I will look into your solution (thanks for that!).

    Maybe a suggestion in the next update?? ??

    Sorry, didn’t have time to check on how to do it “built-in” because then i also have to check each file that has to be edited and so on in the Nextgen Gallery (it’s mostly overview.php, functions.php etc.. just check the html-output and search for classes, id’s etc. it in the files and you’ll see).

    A suggestion? The subpage-thing would be the most easy since you’ll only have to make a page-template (or a page.php in your template) similiar to this;

    <?php get_header(); ?>
    <?php include(TEMPLATEPATH."/top.php");?>
    <?php include(TEMPLATEPATH."/menu.php");?>
    
    <div id="main">
    
    	<div id="maincontent">
    			<div class="page">
    
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    			<div class="post" id="post-<?php the_ID(); ?>">
    			<h1 class="newstitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
    			<div class="postcontent mt10">
    			 <?php the_content(__('(L?s hela posten..)')); ?>
    
    <?php // Detta g?r s? att man f?r en lista p? subsidor om det finns s?dana under
    $children = wp_list_pages('title_li=&child_of='.$post->ID.'&echo=0');
    if ($children) { ?>
    <ul>
    <?php echo $children; ?>
    </ul>
    <?php } ?>
    			</div><!-- postcontent end -->
    			</div><!-- post end -->
    
    			<?php endwhile; else: ?>
    
    			<?php _e('Tyvärr, inga poster matchade ditt kriteria.'); ?>
    
    			<?php endif; ?>
    			<?php posts_nav_link(' — ', __('« Föregående sida'), __('Nästa sida »')); ?>
    
    			</div><!-- page end -->
    
    	</div><!-- maincontent end -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Note this:

    <?php // Detta g?r s? att man f?r en lista p? subsidor om det finns s?dana under
    $children = wp_list_pages('title_li=&child_of='.$post->ID.'&echo=0');
    if ($children) { ?>
    <ul>
    <?php echo $children; ?>
    </ul>
    <?php } ?>

    This code outputs a list

    • etc. that lists all sub pages for the “mother page” (in this case maybe the page “Gallery”).

      So if you got something like this;
      Gallery
      — Netherlands
      — Enchede
      — Rotterdam
      — Germany
      — Berlin
      — Tierp

      etc. it will show that list on the page “Gallery” but also in the menu if you’d like (and you can modify the menu output as well of course)

    Just try that code to your templates (make a backup of it..) page.php-file OR create a page-template and use that on the page “Gallery”.

    Do I miss something here? So, I tried to make a page where I want to show all my different albums.

    [album=1,extend]
    [album=3,extend]

    But it only shows my first album in the list there? Did someone manage to do this?

    My bad…sorry! Don’t forget to update your album once you dropped a gallery in there…otherwise it won’t show up ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: NextGEN Gallery] Album overview’ is closed to new replies.