Navigation - eliminate link

My website should have the following navigation

Index
Page 1
Page 2
Album
...Photos Country 1
...Photos Country 2
...Photos Country 3
Page 3
Page 4
Contact

The Album is made is using ZenPage and works perfectly, but if I make Page 1, 2, 3, 4 with Zenpage (pages.php) I get the following navigation:

Index
Album
...Photos Country 1
...Photos Country 2
...Photos Country 3
..Page 1
..Page 2
..Page 3
..Page 4
Contact

How to avoid that Page 1,2,3,4 are placed into Album? Can the link be suppressed ? If yes, how, where ?

I know of course how to hardcode page 1,3,3,4 so that they appear above or under the album block

Comments

  • acrylian Administrator, Developer
    Do you use the menu manager plugin? That would be the only way to get a menu with albums and (Zenpage) pages combined. If you use that just sort the menu tree differently.
  • Thank you for answering.

    I tried to use the menu manager plugin, but I get always the warning :

    Fatal error: Call to undefined function printAlbumMenuList() in /homez.65/XXXX/www/albums/zp-core/zp-extensions/menu_manager.php(954) : eval()'d code on line 1

    Sure I am doing something wrong.
  • acrylian Administrator, Developer
    You probably have to enable the print_album_menu plugin as well as you seem to use that withing a custom function menu link. (You might want to tell what theme you are using btw).
  • Yes, it works with the print_album_menu plugin. Maybe this should be explained more clearly in the page about extensions.

    Now I am trying to style my menu.

    Thanks a lot
  • acrylian Administrator, Developer
    Well, since you still did not tell what theme you are using, I can't answer why the print_album_menu is used there at all (I don't think any of the standard themes does that in combination with the menu manager).
  • As I said above I am using ZenPage.

    The problem was that I could not find anywhere that I have to enable the print-album-menu plugin with the menu-manager plugin.

    I am having now another problem for which I cannot find a very clear solution anywhere (turoial, forum...). I would like to use a codeblock in a zenpage in order to add some php coding. I read somewhere that I have use printCodeblock(), but where and how to put this line of code. I tried many variants but to no avail. I am sure it is very simple, but I am stuck.

    I love ZenPhoto and I used it already a lot, but sometimes some basic information are missing.
  • acrylian Administrator, Developer
    Sorry, I somehow misread the part about the theme. I could not remember and it indeed uses that function for the automatic default menu set. You can however change that at anytime by modifying the menu set.

    You have to add the printCodeblock function where you want to print it. You have also to choose which of the three codeblocks you want to use via a parameter (see documentation).

    Sorry, if you feel that some info is missing. On some things you need to get into a little, that is often unavoidable. You can of course always contribute if you like. See our "get involved" page.
  • Please, acrylian, don't misunderstand me. I appreciate greatly the work done be the Zenphoto team to develop a marvellous product, make its use as understandble as possible, and to take care of a forum in an intelligent, efficient and polite way. The problem is that the user sometimes gets stuck in a wrong way of thinking (even he/she "gets into it a lot") and if a clear instruction is missing, he/she does not know how to continue.

    I'll make use of the "get involved" page.

    To come back to the codeblock problem: I want to use the code `<?php include('bibliographie.php'); ?` in a ZenPage page. I guess that I have to put this string in Codeblock 1 and I thought that I have to put`print(codeblock()` somewhere in the content part of the page in the CMS. Or am I wrong ? For sure I have to wrap this code between tags. As I said I tried several ways, but to no avail.
  • acrylian Administrator, Developer
    I did not missunderstand you. We can't just place exact details for everything but are willing to rework things if they are not understandable. Some things do require some knowledge of html, css and php beforehand, especially theme changes.

    Re codeblocks: Yes you have to put the php within `<?php ... ?>` within a code block, you can also mix html and php.
    If you use codeblock 1 you have to place `printCodeblock(1)` on your theme where you want to appear it. But that is told on the documentation.
Sign In or Register to comment.