ZenphotoCMS Forum
zenpage page.php change a css class by page name? - 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: zenpage page.php change a css class by page name? (/thread-5966.html)



zenpage page.php change a css class by page name? - mercury66 - 2009-10-10

Hello,

Working with zenpage and looking at page.php - how might I get a page (a page.php) to load a different css class for the sidebar for a particular page ID?

Basically I want to 'display:none;' the sidebar on one of my zenpage pages.

Hope someone can help.

Thx,
Ewan




zenpage page.php change a css class by page name? - acrylian - 2009-10-10

The zenpage page for pages is actually pages.php not page.php, just to avoid confusion. The functions to get the id or the page name (the title is not unique, you have to use the titelink!) are listed on the includeded pdf and on our documenation:
http://www.zenphoto.org/documentation/plugins/zenpage/_plugins---zenpage---zenpage-template-functions.php.html#functiongetPageID
http://www.zenphoto.org/documentation/plugins/zenpage/_plugins---zenpage---zenpage-template-functions.php.html#functiongetPageTitleLink