ZenphotoCMS Forum
zenpage cms: 'active' link conflict ? - 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: zenpage cms: 'active' link conflict ? (/thread-9823.html)



zenpage cms: 'active' link conflict ? - frankm - 2012-04-03

hi,

i'm using zenphoto, version 1.4.2.2 [9365] (Official Build).

i use zenpage for news and custom pages. the thing is i have news categories which have the same name as some of my pages. for instance i have a page which is called "Books" and a news category called "Books" that i used when posting articles related to my books.

when on the news page (news.php), if i sort the articles by category and the "books" category is selected, the "Books" link to the page (that i print using the printPageMenu('list-top','','active','active','','') function gets the active class applied to it. i would rather not have the "books" link active since i am on the news page.

i'm not sure that is entirely clear. i hope so. is there a way to distinguish between active news category and active pages ?

i am using a custom theme but i have checked using the zenpage theme and both themes behave the same way.

thank you for your help.
frank.




zenpage cms: 'active' link conflict ? - acrylian - 2012-04-03

If that happens it is most likely a bug. Categories and pages are not even related. Will try to reproduce this.




zenpage cms: 'active' link conflict ? - acrylian - 2012-04-03

It was a bug. The category and pages menus use the same base menu for nested items and just checked for the titlelink without checking the menu type used. Fixed in svn now.




zenpage cms: 'active' link conflict ? - frankm - 2012-04-03

thank you.