Adding Site Menu

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

  • acrylian Administrator, Developer
    Please some more info what you are tryting to add. Zenphoto has own menu functions like for example the menu_manager plugin (basic has no support for it though). And you of course have to add it to every theme page you use. On standard usage that are also image.php and album.php

    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.
  • What I am trying to add is what I call a site menu. It exists on every page on my site. It's just a ribbon of links to the various pages I have on my site.

    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?
  • acrylian Administrator, Developer
    So, I cannot find where there is a missing "startong?" (never heard that one before!) Any ideas where I might look?

    That "startong" is a typo :-) The `` on some theme files of the basic theme had the start part missing. That is probably causing your issue. If you are just embeding static html into the theme pages that should be no problem.

    The `theme-head` filter is mandatory for Zenphoto as it includes certain scripts needed to work and also for some plugins.
  • `<?php<br />
    // 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.

  • acrylian Administrator, Developer
    Just checked, the index.php of the 1.4.6 basic theme is correct (I am primarily using the master).

    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 `../`).
  • Yes, you were exactly right. It works perfectly when I use the full URL in all the slots. Thank you!
Sign In or Register to comment.