ZenphotoCMS Forum
Using printAlbumMenuList to link to album's first image - 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: Using printAlbumMenuList to link to album's first image (/thread-10681.html)



Using printAlbumMenuList to link to album's first image - tosca - 2012-12-28

I'm using the printAlbumMenuList to generate a menu for the whole gallery.
This call works perfectly:
`<?php printAlbumMenuList('list',true,'albums_list','active','sub_album','active','',true); ?>`
but as soon as I set the following parameter to [b]true[/b] like that:
`<?php printAlbumMenuList('list',true,'albums_list','active','sub_album','active','',true,true);`
in order to
`$firstimagelink If set to TRUE and if the album has images the link will point to page of the first image instead the album thumbnail page`
the whole rest of the page is completely empty. In fact, I looked at the generated source, and all the HTML through the end of the page is commented, starting with the beginning of the `<ul>` tag of the album list.

I'm running the 1.4.3.5 version.

Can you reproduce this issue? And should I report it?

Thanks.


Using printAlbumMenuList to link to album's first image - acrylian - 2012-12-28

What theme do you use?


Using printAlbumMenuList to link to album's first image - tosca - 2012-12-29

I'm working on my own theme. But shouldn't it work whatever theme is used?
If you want me to test with a theme you know, just tell me which one.


Using printAlbumMenuList to link to album's first image - acrylian - 2012-12-29

As a general rule if you experience issues with something in your own theme try it with a standard theme. The Zenpage theme would be appropiate for that. If it does not happen there it is something related to your theme. If it does happen as well we probably have a bug.

Udpate: There was a bug if you have dynamic albums. It is not possible to link to the first image of an dynamic album directly so it is now disabled. That is fixed in the GitHub build.


Using printAlbumMenuList to link to album's first image - tosca - 2012-12-29

Just saw your update: I will try the Git version (once I have found where to download it from...)

In the mean time, I made tests on the image page of the Default theme. The result was different, but it didn't work either: as soon as I add this 'link-to-first-image' parameter, I got only one link to the gallery root, no album/sub-album appears in the list.


Using printAlbumMenuList to link to album's first image - tosca - 2012-12-29

Thanks, the new version works fine.

That was the first time I used this new Git system. I didn't find a link to download the file, and had to do a copy/paste of the source in order to replace the previous version.Might have missed something...


Using printAlbumMenuList to link to album's first image - acrylian - 2012-12-29

You cannot download individual files, just the full build using the zip button (master). It is generally not recommend to use individual files from newer versions on older ones (1.4.4beta vs 1.4.3.x) which can involve other dependencies and cause errors. Always update the whole thing! In this case it should be no problem though.


Using printAlbumMenuList to link to album's first image - tosca - 2012-12-29

Ah... thanks for the explanation.

By the way, this is not related, but the answers I get via the RSS flux are always dated from 8 hours before; there seems to be some discrepancy between the forum time and the one put in the RSS flux.


Using printAlbumMenuList to link to album's first image - acrylian - 2012-12-29

No idea regarding the forum rss. Your answer is right now 34 minutes ago and I am in a completely different time zone than the server.


Using printAlbumMenuList to link to album's first image - sbillard - 2012-12-29

I suspect that the RSS timestamps are UTC times. I have not explicitly checked this, but it would make sense. (I know that I do not typically post at 2AM!)