ZenphotoCMS Forum
Add static pages to a theme - 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 static pages to a theme (/thread-11890.html)



Add static pages to a theme - shiatostorm - 2015-03-13

Hi,
I may be looking in the wrong place as there must be a way to do it, I have a theme that I would like to add a few static pages to with just text, such as website information etc.
But when I try to link to these pages it doesn't seem to work, or at least not like how I'm asking it to link to the pages..

Structure of the site is www.website.com/zenphoto-gallery/

I have placed an 'about.php' file into the theme folder I'm using, the idea being if that theme is selected then these static pages can be navigated to (the theme is based on the default with adapted css and slimbox viewer)
If I then add a link in the theme's index.php, for example, it doesn't seem to like it and comes up as www.website.com/about.php and not website/zenphoto-gallery/about.php - or event perhaps www.website.com/zenphoto-gallery/index.php?=about.php or something

  • not sure what I'm doing butI'm clearly not doing it correctly.

Any help most welcome!




Add static pages to a theme - acrylian - 2015-03-13

Please see here: http://www.zenphoto.org/news/theming-tutorial#static-custom-pages-optional

Or you may want to use the Zenpage CMS plugin: http://www.zenphoto.org/news/theming-tutorial#part-4-theming-zenpage




Add static pages to a theme - shiatostorm - 2015-03-14

Ah ha! thanks for that, knew there had to be something about it, was just looking in the wrong place. I'll give it a read through and see if I can figure it out.
Cheers