![]() |
|
Stop 'home' showing in printPageMenu - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Themes (https://forum.zenphoto.org/forum-5.html) +--- Thread: Stop 'home' showing in printPageMenu (/thread-5986.html) |
Stop 'home' showing in printPageMenu - mercury66 - 2009-10-13 Hello, Quick question - I've been scouring functions guide but can't work out the following: Using Zenpages I have one of my pages, unpublished and titled 'home' which I've selected for my homepage in Zenpage options. I'm using printPageMenu to create my nav bar - how would I prevent the unpublished 'home' page link appearing to a logged in user in the navigation? Many thanks, Stop 'home' showing in printPageMenu - kagutsuchi - 2009-10-14 I don't believe there is any provided way of removing the link. It's actually intended functionality for those users with the correct rights to see unpublished links. I believe this ability is determined by the "View all" right; the effect you're trying to get might be achieved by removing this right from your users if they have it. If this doesn't solve your problem and you really want to remove that link, I believe you'll need to make your own function to do this. Stop 'home' showing in printPageMenu - acrylian - 2009-10-14 Exactly the not logged in user will not see it. @kagutsuchi: I/we appreciate your recent help on the forum. One concern regarding your site: I just visited your website and you "advertise" an Arch Linux Gallery which is actually plain Zenphoto. We would really like to see our credit and backlink on that site (at least in the footer). Thanks. Stop 'home' showing in printPageMenu - mercury66 - 2009-10-14 Hello, Many thanks for the info, the links in question are the main nav so I can hard code them for the time being and return with a better solution at a later date. Thx, Stop 'home' showing in printPageMenu - acrylian - 2009-10-14 In case it helps only users with admin, Zenpage and view all rights should see unpublished pages. Stop 'home' showing in printPageMenu - kagutsuchi - 2009-10-14 @acrylian: Certainly; I've added it. :) |