Member
Member
NaturalEnquirer   2010-08-24, 23:39
#1

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?

Member
Member
sbillard   2010-08-24, 23:54
#2

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.)

Member
Member
frankm   2010-08-25, 01:02
#3

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

Member
Member
gjr   2010-08-25, 01:37
#4

Quote: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.

Member
Member
NaturalEnquirer   2010-08-25, 03:06
#5

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.

Administrator
Administrator
acrylian   2010-08-25, 08:18
#6

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).

Member
Member
NaturalEnquirer   2010-08-25, 15:47
#7
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.