Hello again! Today I am trying to add my site menu to the top of index.php. But the following code keeps the menu from working properly.
`<?php zp_apply_filter('theme_head'); ?>`
It causes the menu's Home button to generate the following error:
head>
websitename | Object not found
Zenphoto Error: the requested object was not found.
Album: home.html
(home.html is the page my Home link links to)
I use Basic, Light.
Thank you for your help.
Comments
If you are trying to use Zenphoto as part of another site run by another system you have these options: http://www.zenphoto.org/news/integration-with-existing-sites-and-other-cms
Edit: `head>` this is probaby a typo in the theme we already corrected in the master build. The startong `<` was accidentally missing on some theme pages.
Yes, I just noticed that I have to add this menu to every page in zenphoto. I really think that adding it to the index should do this, but ...it is what it is.
I'm not using zenphoto as a part of another site run by another system. It is just in a folder of my main site. My main site is simply this site menu I am talking about.
So, I cannot find where there is a missing "startong?" (never heard that one before!) Any ideas where I might look?
The `theme-head` filter is mandatory for Zenphoto as it includes certain scripts needed to work and also for some plugins.
// force UTF-8 Ø
if (!defined('WEBPATH'))
die();
?>
<!DOCTYPE html>
<?php zp_apply_filter('theme_head'); ?>
<?php printHeadTitle(); ?>
">
" />
" type="text/css" />
/common.css" type="text/css" />
<?php if (class_exists('RSS')) printRSSHeaderLink('Gallery', gettext('Gallery RSS')); ?>`
That's what my index.php says.
So from the begining. If Zenphoot is in a folder to the remaining site a link to `home.html` naturally will not work since within the Zenphoto folder there is no such page. The error above does not have to do with the filter at all. So if your link goes to `/home.html` Zenphoto thinks it is an album. So your need to use the full paths to the home page and any other parent site link (or the realtive `../`).