I couldn't get the above to work like the way I wanted it, so I tried this:
`
$mainalbum = getAlbumLinkURL();
$word = 'fotografie';
$pos = strpos($mainalbum, $word);
// i want to check if the main album (not the main galleryname)
// is /albums/fotografie
if ($pos==true) {
set_Context(ZP_ZENPAGE_PAGE);
$_zp_current_zenpage_page = new ZenpagePage("fotografie");
printPageMenu("omit-top","","menu-active","submenu","menu-active");
} else {
printPageMenu("omit-top","","menu-active","submenu","menu-active");
}
`
For now this seems to work. When in the future I will have a second main album (AND main ZenPagepage) I will have to add a check for this too.
One problem I encountered... The list of links in the sidebar keeps mentioning one page which I'm sure I set to 'unpublished', and this link works. But I don't want it to show up.
EDIT... Sorry, the pagelink was indeed removed, but I could only see it after I logged out...