• Resolved englebip

    (@englebip)


    I’m trying to create a partial gallery with only the pictures from that gallery that have a certain tag. I thought that [nggtags] would allow to give an “id=” option, but apparently it doesn’t

    Is there any way I could achieve this?

    I’ll appreciate suggestions!

    I’m using NGG 1.8.2.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter englebip

    (@englebip)

    Well, in case someone else is interested in this, I found a way to hack it without going into the code.

    The trick is to tag each group of pictures with the same tag that does not get repeated in any other gallery; I use tags starting with the galleryID number, such as 28s1, 28s2, etc.

    The problem that this generates is that the partial galleries do not follow the sort order specified in the gallery, but instead the order in which they were uploaded; that is an issue I’m still dealing with.

    The ability to seed tags across galleries is not a shortcoming. There are cases where an admin/editor may wish to select images from two or more galleries. As you discovered, putting a unique tag within a gallery will restrict the search result to that gallery.

    Tags can be used: [nggtags gallery=aTag]

    Thread Starter englebip

    (@englebip)

    Hi the_bork, I agree with you on the fact that it may be a feature and not a limitation; I think a possible feature would be to specify which galleries/albums to look for tags in.

    I think that what confused me at first is that I found the shortcode for [nggtags] confusing when compared to the rest of the NGG shortcodes:

    [ nggtags gallery=<tag> ]
    [ nggtags album=<tag> ]

    While for the gallery and album shortcodes:

    [ gallery id=<gallery_id #> ]
    [ album id=<album_id #> ]

    I think it would be clearer if the shortcode would be something like:

    [ nggtags tag=<tag> ]

    This could be extended to:

    [ nggtags tag=<tag> gallery=<gallery_id#> album=<album_id#>]

    I guess the concern in this case would be that it would break previous installations, but I guess a workaround would be to have a script that would convert the shortcodes in the post/pages upon the first activation.

    Just a thought.

    Agreed. Maybe someone will work on this? Seems like a really good way to granularize image displays.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Select only pics with a certain tag for a gallery’ is closed to new replies.