Page 1 of 1

Permalinks (or links in general) in Gallery?

Posted: Thu Aug 14, 2025 8:06 am
by emgaron
I have set up a number of galleries using the Gallery-module and I'm using a "tree"-template to automatically generate lists on the top-pages whenever I add (sub-)galleries. That all working great, but now I'm wondering: what is the best way to pass on a link to a specific (sub-)gallery to others?

I have pretty_urls enabled and I notice that all links to my galleries appear to follow the pattern HOST/gallery/TOP_GALLERY[/SUB_GALLERY[/SUB_SUB_GALLERY]]/89.html (example: https://tirtomas.eu/gallery/ConcertsEve ... st/89.html) - but is the "89.html" coincidence or can I rely on that? If that pattern can be relied upon, I could for example use re-write rules to create simpler URLs for certain galleries...

Unfortunately, the module help does not say, so as always, any tips are appreciated!

Re: Permalinks (or links in general) in Gallery?

Posted: Fri Aug 15, 2025 3:11 pm
by Jos
You can rely on that number. It represents the page-id of the page where you have put the {Gallery} tag.

Re: Permalinks (or links in general) in Gallery?

Posted: Tue Aug 19, 2025 5:19 pm
by emgaron
Wonderful - that gives me something to work with! Thanks a mil!

Re: Permalinks (or links in general) in Gallery?

Posted: Tue Aug 19, 2025 5:22 pm
by emgaron
Ah, just noticed a small catch - I have a multilingual site, so the {Gallery} tags are on multiple pages (one for each language)... Still, knowing that the link is actually related to the page ID still gives me something to work with! :)