The simpler media website CMS
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
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 likegallery.php
to act as the custom index via `getOptioHi acrylian,
I use a custom theme, self made.
I think it is no the full code then with that empty option call.
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
Great, thanks for the follow up!