• Resolved thasg

    (@thasg)


    I have a NextGen setup with a series of albums each containing a few galleries with pictures in them. I’m trying to create an albums > galleries > thumbs setup that updates dynamically. After some trial and error, I have it working nicely and dynamically with a single shortcode as follows:

    [ngg_images source="albums" container_ids="0" display_type="photocrati-nextgen_basic_extended_album" gallery_display_type="photocrati-nextgen_basic_thumbnails" display_type_view="default" open_gallery_in_lightbox="0" order_by="sortorder" order_direction="DESC" returns="included" maximum_entity_count="500"]

    With that one shortcode I get:

    1. root page: a list of all galleries in all albums starting with the most recent
    2. album page (when manually entered into address bar): a list of galleries in that album
    3. gallery page: thumbnails of images in the gallery

    … and don’t need to create separate pages for each album and gallery. In addition, it updates dynamically as new albums/galleries are added. That’s just what I wanted!

    To my questions:

    On 1) I’d love to be able to sort by album, then the galleries contained within, showing the (linked) album title between each set of listed galleries. Or alternatively just list the albums with their selected thumbs rather than the galleries they contain.

    On 2) How can I get the title of the current album to display above the list of galleries it contains?

    On 3) How can I get the title of the current gallery to display above the list of thumbnails?

    As I have it now in 1) albums are more of a theoretical organisation tool because the template retrieves the galleries they contain but no details about the album themselves. The only way I have found is to enter each album title manually into the page body, and then to insert a separate corresponding shortcode for each album. However, that’s no longer dynamic …

    For 2) Entering the album URL into the address bar shows this page correctly, but I haven’t found a way of linking to an album page. I’d like to link this from 1) and ideally also additionally via a list of albums in the sidebar (e.g. via a widget). Currently I’ve used a text widget for the sidebar and created this list manually but it will not auto-extend as new albums are created.

    For 2) and 3) there’s therefore no way of knowing what page we are actually on without looking at the URL in the address bar, which isn’t visible on many devices (and some desktop browsers, too).

    I’ve tried using the breadcrumbs but they don’t show. I think they’re not shown with this theme combination, right? Have I missed something in the settings? Or, do I need to organise my albums and galleries differently?

    Could I add these via an own template? I’m relatively well-versed in code but not a programmer?

    I’d be very grateful for any pointers. Many thanks!

    • This topic was modified 6 years, 3 months ago by thasg.
    • This topic was modified 6 years, 3 months ago by thasg.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Imagely

    (@imagely)

    @thasg – The initial shortcode’s parameter would be used for sorting the albums since it is calling all albums all of the time (although this is really an unsupported use of the container_ids parameter set to 0). These parameters are sorting the albums (not the galleries).

    Galleries would need to be sorted in the sub-albums (Manage Albums); and, images would need to be sorted in the galleries (Manage Galleries).

    Displaying specifics of the album (or more specifically the sub-album and/or gallery) would require using the Link to page option(s) although this would also negate the generic shortcode you are using and the benefits you are seeing/wanting from it.

    Breadcrumbs should be displaying although they generally do not when using NextGEN Legacy templates are those do not specifically support breadcrumbs. Although you do not have a template defined in the shortcode, if you have it defined under Gallery Settings for the Extended Album display type it will be used none the less.

    Now, given the above, your best bet to achieve all that you are looking for is likely going to be one (or more) custom templates (which exceeds our current support resources) and to keep in mind, the gallery template(s) would need to be set under Gallery Settings for them to be used by an album display.

    Thanks!

    – Cais.

    Thread Starter thasg

    (@thasg)

    Your tip to place the albums inside a containing album and then to use that album id for the container_ids allows me to create the desired album list > album galleries > gallery structure and to click through from one to the next. Thank you!

    For the titles, I’ve resorted to ‘faking’ them by creating a child theme page template for that page and extracting the slug parts from the page url and querying the db to get the corresponding album / gallery titles.

    Maybe a “show album/gallery title” option is a potential feature for future template updates?

    Plugin Contributor Imagely

    (@imagely)

    @thasg – You are more than welcome to share your thoughts and ideas on this as a Feature Request here: https://imagely.com/feature-voting/

    Thanks!

    – Cais.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Album list and gallery titles?’ is closed to new replies.