ZenphotoCMS Forum
Persistent Navigation - 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: Persistent Navigation (/thread-8862.html)



Persistent Navigation - junko - 2011-07-14

Hi all,

I'm designing a custom theme, for which there is a navigation on the left which shows text links to all the albums in Zenphoto (on index.php)

Is it possible to have the list of albums still visible on album.php?

The code used to display the navigation on index.php is as follows:

Quote:[list]
[*]Home

[*]" title=" ">

    [/list]

Inserting the same PHP for the navigation into album.php generates this error:

Quote:Fatal error: Call to a member function getImages() on a non-object in /home/public_html/zenphoto/zp-core/template-functions.php on line 1774
Any help on this matter would be very much appreciated.

Thank you in advance.




Persistent Navigation - acrylian - 2011-07-14

Use the print_album_menu plugin function or those of the menu-manager (for a custum one).




Persistent Navigation - junko - 2011-07-14

[b]@acrylian:[/b] Thank you so much. I ended up using print_album_menu, simply because I couldn't find an apply button for the menu-manager when adding menus!

For anyone interested, the code I used was:

`

[list]

    [/list]

`




Persistent Navigation - acrylian - 2011-07-15

I don't understand the menu manage issue. It has its own tab on the backend where you can create even different menu sets. Of course you need to add the appropiate function to call one of those sets to your theme.