album gallery template
-
I need to be able to specify the gallery template when displaying an album. The album may contain several galleries and each of those galleries should use the gallery template specified on the album shortcode (or panel).
Here is a simple example. The user goes to the Sports Albums page and the Compact Album template displays the contained galleries. The user selects a gallery (football, hockey, marathon etc) and, currently, the default gallery template for NextGEN Basic Thumbnails is used.
The user then goes to the Movie Albums page and the Compact Album template again displays the contained galleries. The user selects a gallery (action, romance, foreign etc) and the default gallery template for NextGEN Basic Thumbnails is used.
I need the album invocation to be able to specify the gallery template so that, in the above example, all galleries contained within an album can use the gallery template specified for the album. Which may be different for another album.
I see this type of functionality has been requested several times over the past 6 years and workarounds/patches have been suggested but the ability is still missing.
I found that I can specify a gallery template on the album shortcode, for example with:
[ngg_images album_ids=”2″ display_type=”photocrati-nextgen_basic_compact_album” template=”album-compact” display_gallery_template=”gallery-myslider”]
and tracing through the nextgen code it would appear to be recognized all the way to the gallery display:
index_action
display_settings:
Array
(
[gallery_display_type] => photocrati-nextgen_basic_thumbnails
[galleries_per_page] => 0
[enable_breadcrumbs] => 1
[template] => album-compact-services
[override_thumbnail_settings] => 1
[thumbnail_width] => 200
[thumbnail_height] => 200
[thumbnail_crop] => 1
[use_lightbox_effect] => 1
[disable_pagination] => 0
[gallery_display_template] =>
[ngg_triggers_display] => never
[display_gallery_template] => gallery-myslider
)But the specified display_gallery_template is not used and nextgen uses the default gallery template for NextGEN Basic Thumbnails.
Please can we have the ability to specify the gallery template from the album invocation?
The topic ‘album gallery template’ is closed to new replies.