![]() |
|
print a link to a specific album - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: print a link to a specific album (/thread-10977.html) |
print a link to a specific album - vincent3569 - 2013-04-07 hi, is there a function to print a link to a specific album ? print a link to a specific album - acrylian - 2013-04-07 Yes, via the object model you can do everything. See the album class. print a link to a specific album - vincent3569 - 2013-04-07 maybe, I have something before my eyes, but I can't see anything about my request. print a link to a specific album - acrylian - 2013-04-07 Create an object of the album and use the album class method Of course the gallery object is available already in print a link to a specific album - vincent3569 - 2013-04-08 thanks acrylian The link will be in my header, or my footer, so it will be present on all pages of my site: I have to create object at each page reload? Is there no static method which allows to not create an object every times ? print a link to a specific album - acrylian - 2013-04-08 No, we don't have such a function. But - I forgot the obvious way myself - album links are quite simple so you can alway create a link manually like So if you don't need anything else of the album like title or tags or else to display, that is the way. For Zenpage items there are such links because of the keyword "news","news/category" and "pages" and also the custom pages "page/" so they update automatically in case the url structure changes. print a link to a specific album - vincent3569 - 2013-04-08 of course, I can write something like that in the code print a link to a specific album - sbillard - 2013-04-08 There is a mod rewrite function: Static album methods could not work anyway. A static object has no unique content, so would not have the album name. The only way to get that kind of information is to instantiate the album. |