Link to gallery page from custom home page

I'm trying to add my own home page to ZenPhoto zpGallerific theme and I think I'm missing a step.

> I've renamed index.php in \zenphoto\themes\zpgallerific folder to test.php.

> Added my index.php to that same folder.

> In theme options, selected test.php as my new custom index page.

At this point I see the index page, but I can't seem to correctly link to the test.php in my new index.php

`
The page you are requesting cannot be found.
Album: page
Image: index-original
`
I've tried http://domain/themes/zp-gallerific/test.php, test.php, http://domain/themes/zp-galerific/page/test.php, pages/test.php, etc.

I assume it has to do with rewrites so what link should I be using? And should path be absolute or relative?

Comments

  • I'm not familiar with zpGallerific, it is possible it does not support the custom index page option. If it does, the "home" link (whatever that looks like on the theme) should look something like:
    `domain/page/test` using mod_rewrite.
    (I assume from your example that you are installed in the root folder.)
  • hi,

    there might be different options.

    if you use zenpage (checked box in the plugin list), you need to add a new page, design it (fill in title, description and so on). do not publish it. then in the theme 'homepage' option, select this page.

    if you're not using zenpage, edit the index.php file in the theme folder and replace the `include ('gallery.php')` at the very end by `include ('myhomepage.php')` (or whatever the name of your page is. i haven't tried this last solution, so i'm not sure it will work.

    frank
  • gjr Member
    if you use zenpage (checked box in the plugin list), you need to add a new page, design it (fill in title, description and so on). do not publish it. then in the theme 'homepage' option, select this page.
    Correct.
  • If I use the zenpage option of using an unpublished page, it will use the default header and footer, etc. of the theme. I have a home page that will be different layout than the gallery pages.
  • acrylian Administrator, Developer
    Then you have to edit the `pages.php` page to load something different manually. (kind of "if pages z then x else y") Zenpage items do not support "theme" as the toplevelalbums do.

    Or just modify the theme's index.php (if that is the homepage, I am not familiar with the theme as well).
Sign In or Register to comment.