![]() |
|
makig a template page for 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: makig a template page for theme (/thread-6368.html) |
makig a template page for theme - juggernaught - 2010-01-02 Hi everyone, I made a really simple theme for zenphoto and was wondering, is it possible to use a template page that can contain a navigation div to appear on every page of my theme ? i noticed that an album opens a new folder in the url which means i can't use a navigation div across all pages since the new album page doesn't see the nav div code. what i need is a template page like wordpress would do, so that the nav is brought in to every page that is dynamically created by zenphoto. thank you for any help you can give juggs makig a template page for theme - sbillard - 2010-01-02 You would have to create a script to do the nav div and include it on each page. makig a template page for theme - juggernaught - 2010-01-02 like an include ? thank you for replying thanks makig a template page for theme - acrylian - 2010-01-02 Yes. Please also read our theming tutorial and look at the standard themes. makig a template page for theme - juggernaught - 2010-01-03 Thankyou for all your help. thanks makig a template page for theme - gjr - 2010-01-03 You are not really getting how ZenPhoto works... Everytime you are looking at an album, you are looking at the code generated by the album.php file in your theme, for example. The zpFocus theme uses includes like the header and sidebar. It has conditionals to show certain content based on the theme file being viewed. makig a template page for theme - juggernaught - 2010-01-03 ahh i see. that is helpful, thank you. i will look at album.php and work out how to get the nav div in there. thanks a lot for your help. makig a template page for theme - acrylian - 2010-01-03 There are more theme files than just album.php. Thus again the recommendation to read the theming tutorial... |