ZenphotoCMS Forum
bug with the print-album-menu plugin and Zenpage theme? - 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: bug with the print-album-menu plugin and Zenpage theme? (/thread-7896.html)



bug with the print-album-menu plugin and Zenpage theme? - vincent3569 - 2010-11-26

is there a bug with the print-album-menu plugin and Zenpage theme?

if "News on index page" is checked, there is the following display
Galerie
[b]- gallery index[/b]

  • album1
  • album2

if "News on index page" is unchecked, and if a homepage is choosen or not in the admin, the display is OK :
Galerie

  • album1
  • album2



bug with the print-album-menu plugin and Zenpage theme? - acrylian - 2010-11-27

No bug, jist coded that way if you look at the sidebar.php file:
if(!getOption("zenpage_zp_index_news") OR !getOption("zenpage_homepage")) { $allalbums = ""; } else { $allalbums = gettext("Gallery index"); } printAlbumMenu("list",NULL,"","menu-active","submenu","menu-active",$allalbums,false,false);




bug with the print-album-menu plugin and Zenpage theme? - vincent3569 - 2010-11-27

ok, it's not a bug printalbummenu.
but I do not understand the interest of this code of sidebar.php.

if "News on index page" is selected, the "gallery index" link appears.
but this link goes to the index of the site: the news page.
so, it has nothing to do with the photo gallery ...




bug with the print-album-menu plugin and Zenpage theme? - acrylian - 2010-11-28

I guess you are right and I admit don't remember what the reason for this actually was... . Probably forgotten stuff from way back then that no one ever noticed....




bug with the print-album-menu plugin and Zenpage theme? - vincent3569 - 2010-11-28

ok
do you want update the theme ?
to you need a ticket for that or not ?




bug with the print-album-menu plugin and Zenpage theme? - acrylian - 2010-11-29

I have already change so that the index link is not shown if in "news on index" mode for now. No ticket necessary this time.

Problematic is that not every theme needs to be setup like the Zenpage theme is. So not all will have a separate "gallery" page you can link to alternatively if in "news on index" mode. I actually would suggest to use the menu manager alternatively to create a custom menu with that gallery link.