Custom index doesn't work anymore in Zenphoto 1.5

Hi all,

In Zenphoto 1.4.14 I had a custom index page.
I had a home.php that was actually the index.php, and a gallery.php as the gallery index page.

In my index.php I had the following code:


<?php
if (getOption('')) {
    $isHomePage = true;
    include ('home.php');
} else {
    $isHomePage = false;
    include ('gallery.php');
}
?>

In the theme option the gallery.php was the gallery index page link.
In Zenphoto 1.5 this option doesn't work anymore. Is this option changed?

TIA

Comments

  • acrylian Administrator

    You did not mention what theme you use. This is require info. None of the official themes use such code. The code you posted seems not to make sense to me because if (getOption('')) { checks for an option without an option so would be always false anyway.

    It is still possible to call a custom gallery index page. There is also still a standard theme option which all included themes have it disabled though. The option is called custom_index_page and would contain the (static) page selected like gallery.php to act as the custom index via `getOptio

  • Uhhh Member

    Hi acrylian,

    I use a custom theme, self made.

  • acrylian Administrator

    I think it is no the full code then with that empty option call.

  • Uhhh Member

    U are right. I checked the full code and it was not correct. I needed some adjustments in my custom theme, but it is working now.

    TIA

  • acrylian Administrator

    Great, thanks for the follow up!

Sign In or Register to comment.