Custom Index Page

I've integrated my site but don't want the gallery as the index page. So I changed things around to "multimedia" in admin but now when I click a gallery the page isn't formatted correctly and the images for that gallery aren't even there. The style sheet doesn't seem to be taking. Any insight on linking things and getting my paths right?
Thanks

Comments

  • Failed to mention that the "new" index page is multimedia and the galleries show up but when I click the galleries no formatting and no galleries.

    Link here.
    http://test.empx.net/multimedia.php
  • Probably what you are doing is not going to work. It looks like the rewrite rules are doing you in.

    If you are integrating into an existing website the best method is to install Zenphoto into a subfolder and place a link on your main index page to that subfolder.

    If all you want is a custom index page then you can do something like rename the Zenphoto theme index.php script to something else, say gallery.php. Set the theme option for the gallery index page link to "gallery". Create your new index page with a link to <site>page/gallery. An example of this technique can be found in the stopdesign theme. It has a custom page for the index since it is somewhat different from the normal gallery index.
  • Yeah I'm going to have to mess with things. I've disabled Mod_re-write and that solves my paths issues but getting the new gallery page is causing headaches now. I'll get it. Will check out the stopdesign theme for more details
  • ughhh...lol. Does the default theme not allow a custom index page? If I simply change the name of index page to multimedia I can see the gallery on the page I want. However the link to the gallery is for example "index.php?album=TachClock" when it should be "multimedia.php?album=TachClock". If I manually set the url to "multimedia.php?album=TachClock" that gallery then displays properly...but the link to each image kicks back to "index.php......."

    Sorry just talking out loud...
  • acrylian Administrator, Developer
    The `index.php` you actually see in the url is not the theme's `index.php` but actually the root `index.php`. Through that all procesing of themes runs.

    That the multimedia.php file is not working with the modrewrite rules is normal as the htaccess file does not care about a file of that name.

    Pages that are not using the standard way of theming (index -> album -> image) need to be called as a "custom page". Please see the theming tutorial and get a little more familiar with Zenphoto themes in general.
  • It seems as if I got things to work now. But NOW if I set a pic in the album to not be visible it still shows up. Weird. More playing I guess.
    Thanks
Sign In or Register to comment.