WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: NextGEN Gallery] Template inheritance from album to gallery (7 posts)

  1. hedu64
    Member
    Posted 4 years ago #

    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

  2. areaunknown
    Member
    Posted 4 years ago #

    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

  3. tommo77funk
    Member
    Posted 4 years ago #

    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

  4. Alex Rabe
    Member
    Posted 4 years ago #

    @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

  5. nick_nielsen
    Member
    Posted 4 years ago #

    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 ?

  6. jennsweb
    Member
    Posted 4 years ago #

    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?

  7. mnr
    Member
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.