Best way to integrate custom sub album page?

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 > subalbum.php > 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

Comments

  • acrylian Administrator, Developer
    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/`.
Sign In or Register to comment.