Member
Member
penzoto   2007-11-04, 07:05
#1

I’m trying to add a custom sub album page to a template. So, instead of having: [index.php > album.php > image.php] it would be [index.php > [b]subalbum.php[/b] > album.php > image.php].

I was successful by replacing getAlbumLinkURL() with getCustomPageURL() in template_name/index.php, but this way seemed like a cheap hack and it created an ugly url.

I’m currently trying to integrate the custom subalbum.php the same way album.php and image,php are used. But not sure if this is the best way, as it requires modifying core files.

Any help/insight would be appreciated

zp1.1

Administrator
Administrator
acrylian   2007-11-04, 10:48
#2

What you want to do, is probably a little more complictated, since is it not the system zenphoto works. However you can do a lot of things with custom functions without hacking the core.

Maybe it would help you to know that you can call custom pages within your theme by index.php?p= or with modrewrite
zenphoto/page/.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.