ZenphotoCMS Forum
Add custom classes to Custom Menu plugin - 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: Add custom classes to Custom Menu plugin (/thread-7630.html)



Add custom classes to Custom Menu plugin - smiguel - 2010-09-17

Hi,

anyone know an alternative way to add some classes to the UL and LI elements of the Custom Menu plugin?

I can't find more documentation of this plugin (only I've found http://www.zenphoto.org/2010/04/menu_manager/)...




Add custom classes to Custom Menu plugin - kagutsuchi - 2010-09-17

The Zenphoto Functions Documentation is located under the User Guide on this site.

http://www.zenphoto.org/documentation/

The function printCustomMenu() allows you to specify certain ids/classes for certain parts of the menu.




Add custom classes to Custom Menu plugin - smiguel - 2010-09-18

How? Every time I try to implement a string, menu disappears. Surely I'm not doing well...




Add custom classes to Custom Menu plugin - acrylian - 2010-09-18

Maybe you should explain a little more what you actually want to do and what you did so far.
I also recommend strongly to read the "how to read the functions guide" article.

The menu allows you to set the id for the toplevel and it's child. Additionally you can set the class for the sublevel and as well.
The menu comes with predefined classes for the menu item type you can use for styling as well. I suggest to take a look at the generated source code.




Add custom classes to Custom Menu plugin - smiguel - 2010-09-18

I've solved my menu with imagination and CSS (i'm a better designer than programmer) and my last question, not very important, is: can "active" sections have link also?

You can view my menu running here: http://cestlaviestudi.com/index.php




Add custom classes to Custom Menu plugin - acrylian - 2010-09-18

Only if you make a custom menu function of your own. It does not make much sense to me to link to the page you are actually on.




Add custom classes to Custom Menu plugin - smiguel - 2010-09-18

I know, but for aesthetic...




Add custom classes to Custom Menu plugin - acrylian - 2010-09-18

I don't understand, looks fine for me "marked as selected"... Good for usability btw.