ZenphotoCMS Forum
zenphoto, zenpage and a different index - 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: zenphoto, zenpage and a different index (/thread-3907.html)



zenphoto, zenpage and a different index - antonionardelli - 19-10-2008

Hi, i installed the last zenphoto and zpage in the "zenphoto" directory in the root of the site.
I have and index.php in the root i made.
I've copied this code at the top of index.php

define('ZENFOLDER', 'zp-core');
define('WEBPATH', 'zenphoto');
require_once(WEBPATH . "/" . ZENFOLDER . "/template-functions.php");
header ('Content-Type: text/html; charset=' . getOption('charset'));

But i can't show footer, sidebar and links are broken.
What to do?




zenphoto, zenpage and a different index - sbillard - 19-10-2008

zenpage takes a little more that just the zenphoto template functions to work. I do not know it this is sufficient, but at least you will have to add a require_once statement for the zenpage template functions.




zenphoto, zenpage and a different index - acrylian - 19-10-2008

Zenpage needs a normal Zenphoto install, no need to include anything. Maybe you could explain a little further what you are trying to do?




zenphoto, zenpage and a different index - antonionardelli - 19-10-2008

Hi all, i'm tryng to have an index in the root of the site with zppage components themes, and styles.
the index file is in the root of the site, zp is installed into "/zenphoto", but i'm getting inclusions errors.




zenphoto, zenpage and a different index - acrylian - 19-10-2008

Then install zenphoto in the root.




zenphoto, zenpage and a different index - antonionardelli - 19-10-2008

I need to have an index different from the default zp index.
Thank you for help!




zenphoto, zenpage and a different index - antonionardelli - 19-10-2008

When i used wordpress i remember there was the option to choose a page as index.
Why in next releases of zpage realize it?




zenphoto, zenpage and a different index - acrylian - 19-10-2008

Why? If you don't tell more details we won't be able to help any further. Besides that the Zenpage plugin has not been tested that way nor is it actually meant to be used that way.




zenphoto, zenpage and a different index - antonionardelli - 19-10-2008

I think i'm not explayning well. Sorry for this.
The default zenpage index with galleries, for my site should be a secondary page accessible only from links in the menu.
So i should create another page, with themes, styles, menus etc. that zenphoto uses.
I did it, but calling sidebar and footer i get this error
Warning: main(footer.php) [function.main]: failed to open stream: No such file or directory in /membri/assdhlpicinisco/index.php on line 50




zenphoto, zenpage and a different index - sbillard - 19-10-2008

You probably want a separate index page from the normal gallery page. This is the way the Efferevescece+ theme uses zenpage--essentially the index.php page is the news page with a link to the gallery which looks like (and actually is) the index.php page of a zenphoto installation not using zenpage.

There is now a brief desctiption of this in the themeing tutorial http://www.zenphoto.org/2008/05/theming-tutorial/

But briefly, You want to rename your current index.php file to gallery.php, create a new index.php script for your "news" page, and set the theme option custom index page to gallery.




zenphoto, zenpage and a different index - antonionardelli - 20-10-2008

Hi sbillard, i had a fast look at your reply and the things to do, now i'm going at work, this afternoon i'll try to take it working. You wrote all i need!! Thank you for this, and sorry for my english!!Bye




zenphoto, zenpage and a different index - antonionardelli - 20-10-2008

Now all is working prectly, many thanks to sbillard and acrylian!!!
See you!