(2015-01-22, 01:51:07)aldebaran Wrote: ALSO / BUT : In your gallery docs page you describe the param imagetags … I tried this also with the (% %) syntax but it did not work .. So can you only use this with a full <php … ?> call in a template ? .. If so, would it not be better to standardise on these params so they are the same for both types of syntax (% ... % ) and <php … ?> ?
You need to use "tags" for both (% gallery ... tags=mytag %) and <?php get_i18n_gallery(..., array('tags'=>'mytag')); ?>. But if you don't specify tags, e.g. just (% gallery name=mygallery %), you can call the page with http:/.../mygallerypage?imagetags=mytag which will then filter the gallery as if you specified the parameter tags. This way you can have one gallery and show different parts of it by just adding the tags to the link URL.
(2015-01-22, 01:51:07)aldebaran Wrote: BUT, on your docs page, what do you mean “id - use it as an identifier, if you include a gallery more than once on a page” ? … Can you clarify ? … To me “a gallery more than once ..” means it can be the same gallery, whereas you probably mean that the galleries must be different … Can you give an example of using id. How would you use id ? If you say you cannot have the same gallery twice on the same page, then what is the purpose of id ? … the unique gallery name could act as the identifier … ?
Great! You found a feature I wasn't even aware of anymore.
You can use the same gallery multiple times on the same page by specifying an id (i.e. any text string), e.g.
Code:
(% gallery name=mygallery id=g1 %) ... (% gallery name=mygallery id=g2 %)
Code:
(% gallery name=mygallery tags=building %) ... (% gallery name=mygallery tags=animal %)
(2015-01-22, 01:51:07)aldebaran Wrote: So this just represents a normal link to another normal GS page. So the url param refers to the slug name of any normal GS page .. PS it seems that the name can be any valid gallery name, and the url can be any GS page, whether there is a gallery there or not.
Yes, you are right. It should probably be "add a link, consisting of an image of a gallery, to any page". Updated in the description.