Custom pages within a subdirectory

Hi,
I have a single ZenPhoto install (no ZenPage), with a custom theme based on Default theme. I created some custom themed pages and they work great, but I have a subdirectory where I have other types of files I want to serve through ZenPhoto and I need this subdirectory password protected.
At this moment I have PHP files serving the files and the directory with the .htaccess and everything is working ok. But I want those PHP file with the ZP theme.
If I call the custom page :
/zenphoto/page/subdirectory1/c_page
ZenPhoto complains image "c_page" isnt found under the album "subdirectoy1"
Is there a way to have a subdirectory structure for custom pages?
I must leave the dir structure as it is (even filenames), and looking like the same theme

Thank you for any pointer you may give me

Nelson.

Comments

  • acrylian Administrator, Developer
    No, URLs to custom pages on Zenphoto are always`/page/`. `page` is the "code word" here. Everything else like `/something/something` would be considered to be an album.

    You could of course change the htaccess rewrite rules.

    If you really need to use password protected pages I really recommend to use the Zenpage CMS plugin as you can password protect its pages directly. That is far easier than hacking anything.
  • At the end I duplicated the theme in those pages and if the theme changes, we'll have to recreated the design changes in those pages.
    I thought also in ZenPage but sadly, the client didn't want to spend more time (small budget) in this project

    Thank you
  • acrylian Administrator, Developer
    I understand budget constrains but I don't really understand what makes using Zenpage pages so much more costly. Anyway, of course I don't know all details of what you doing why at all. Whatever works for you.
Sign In or Register to comment.