ZenphotoCMS Forum
locked page - 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: locked page (/thread-12389.html)



locked page - RB26 - 2015-12-20

bonjour
is ther possible to add a icone before a locked page in printPageMenu() (parameters or hard coded)
thanks
rb




locked page - acrylian - 2015-12-20

With "locked" do you mean the "locked for changes" option? That is backend only and has no meaning on the front end at all. But no, there is not.

Or do you mean a password protected page? No, but why would you need that exactly? Actually password protected pages should not be shown in the menu unless you are loggedin with the right to see them.

You would have to create your own custom version of the base menu function printNestedMenu() which is a quite complex one. Never modify the original.




locked page - RB26 - 2015-12-20

thank for this fast answer

Or do you mean a password protected page? No, but why would you need that exactly? Actually password protected pages should not be shown in the menu unless you are loggedin with the right to see them.

only for inform the visitor that the page need a password for showing it.

actually, in my version (1.4.6 last release before the upgrade), the pages with password appear with the printPageMenu() function.

I will see for create my own function

rb




locked page - acrylian - 2015-12-20

[i]actually, in my version (1.4.6 last release before the upgrade), the pages with password appear with the printPageMenu() function.[/i]
You are right, my fault testing sideways… The page I tested with quickly was unpublished accidentally. Indeed they do. Is unpublishing maybe an easier option for your? People still could access them by direct link then and users with full or pages rights should see these if being loggedin.

Btw, you could open a ticket on GitHub suggesting this, so we may add this as an option in one of the next releases.




locked page - RB26 - 2015-12-21

Is unpublishing maybe an easier option for your?
not really, print the link is better for the production, an informative icone before the link would just be friendly
The ticket is on gitHub (i wish there is understandable)
rb