makig a template page for theme

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.
is this possible ?

thank you for any help you can give

juggs

Comments

  • You would have to create a script to do the nav div and include it on each page.
  • like an include ?
    if so, how do i include the nav on everypage when zen photo dynamically makes pages based on what your album is called.
    is there a way i can find the code that generates the new pages, so that i can put the include in there?

    thank you for replying

    thanks
  • acrylian Administrator, Developer
    Yes. Please also read our theming tutorial and look at the standard themes.
  • Thankyou for all your help.
    Acrylian, when you say 'yes' do you mean yes to an include statement?
    if so, would you please let me know where in the zen photo theme code i can put it to have the nav included into every page of the site (even ones that get created such as new album pages eg: sitename/holidays/france/09)

    thanks
  • gjr Member
    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.
  • 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.
    james
  • acrylian Administrator, Developer
    There are more theme files than just album.php. Thus again the recommendation to read the theming tutorial...
Sign In or Register to comment.