• Hi Alex,

    by default a gallery which is listed by an album always uses a default-template. But I and other users need custom-templates for both album and galleries. Including the gallery directly into a post gives us the possibility to enter the custom template. But this is not the case whe we display an album. Currently an album always links to a gallery in a standard-template.

    Would you please include this patch into your next version of the wonderful NextGen Gallery, in order to make it possible to use a custom template for a gallery also in case it is listed by an album?

    This does the trick:

    line 285 in nggfunctions.php
    replace:
    $out = nggShowGallery($galleryID);

    by:
    $out = nggShowGallery($galleryID, $template);

    Otherwise it is necessary to re-code this every time after an update.

    Thank you in advance,
    Heinz

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi, can you explain exactly what the above change does because I am after styling my gallery pages which are placed into an Album.

    MSN: luke@daly.co.uk

    Many thanks,

    Luke

    Hi,

    I am displaying a gallery using the tags, as seen on this page http://nextgen.boelinger.com/gallery-tags/ is it possible to apply a template to the outputted images.

    I like what you have done for the albums and have looked at nggfunctions.php but cant find similar code to change.

    Any help or advice I’d be mega grateful. I am just trying to display certain catergories on pictures without making new galleries.

    Thanks,

    tom

    @hedu64

    I agree, but the main problem is that when you use album “extend” or “compact” I need to have the same for the gallery.

    Do you really need a different template for a gallery which is called via a ablum and the shortcode [nggallery=x] ?

    if not, then simply change the style of gallery.php in the template folder

    I don’t really understand – you can choose to link a gallery to it’s own page, which means that you can use a template for each page….

    So why the code change ?

    I am having a similar issue. I want to use NextGen on pages that use a different template than the blog portion of the site. The gallery will display on a page using a custom template, but it doesn’t function (thumbnails display but they don’t work). The only way this is working is to use the same header template as the blog. Any thoughts as to how to fix this?

    mnr

    (@mnr)

    is there any way for us to download custom templates at all? There don’t seem to be any provided with the program or on the site.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: NextGEN Gallery] Template inheritance from album to gallery’ is closed to new replies.