samtiria / nextgen-gallery

Automatically exported from code.google.com/p/nextgen-gallery
0 stars 0 forks source link

Unable to List All Galleries Correctly. #460

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Using this shortcode: [album id="all" template="extend" gallery="gallery"]

I expect to see a list of all galleries with links to each gallery. Instead, I 
see a list of all galleries with broken links. Only the gallery slug is 
appended to the base URL.

What version of the product are you using? On what operating system?
Version 1.9.2 on Snow Leopard

I am able to fix the link issue in my own template using this code:

   trailingslashit ( get_permalink() ) .  trailingslashit ( $nggRewrite->slug ) . trailingslashit ( $gallery->slug )

And in the function nggShowAlbum(), I added the code:

    if ( ( is_string ( $albumID ) and $albumID === 'all' ) )
        $gallery = $album;

This ensures that if a gallery object is passed to nggShowAlbum to treat it as 
such and not as an album.

Original issue reported on code.google.com by clsil...@gmail.com on 19 Jan 2012 at 12:02

GoogleCodeExporter commented 8 years ago
should be fixed with r1073

Original comment by alex.cologne on 26 Feb 2012 at 10:00