Hi guys, i need some help customizing the index page of my gallery. I have a special album that I'd like to separate from the others.
The layout I'm after is looking something like this.
Can zenphoto do stuff like that?
I am sure there is a way to do that. The theme "Stopdesign" does something similar. It puts most recent albums on the main page, then has a link to all the albums. You might take a look at that theme. Be sure you get the version from the community build as it has been totally rewritten from the original on trak.
I actually just did this two days ago for a site I am working on.
see it here: http://www.thegreenskirt.nl/site/projects
his is how I did it:
add a folder to zp_themeroot named albumstyles eg: "themename"/albumstyles
in the folder albumstyles put different css.files for the different album "appearances".
eg "themename"/albumstyles/sergio.css, sergio.css now containing only css to be different then the zen.css like backgroundcolor, different header-images etc.
(load the custom functions by putting
as first line in your album/image.php) Put this in the customfunctions.php;
in the top of the album/image.php
right under the head containing "
hmm I actually want to do this in a simpler way..
I tried making the css a php by adding at the top of the zen.css and saving it as zen.php and then in the album load the stylesheet zen.php instead of zen.css. No problem..
but.. I am not able to put functions in this zen.php .. how should I proceed? I tried to include the template functions in the zen.php with an include call e.g but without succes..
If I get you right, you want the first album look different as the others?
I have not tested it, but why don't you use the album loop on index.php:
`
div class="thumb">
a href="" title="View album: ">
div class="albumdesc">
">
`
If you say want the first album on top of the page different, sort it in the admin and then check the album name right in the loop with a simple:
``
Then put the in an echo statement like this and it will look different. Of course this is only for the css styles, but you could use an if statement for an different albumthumbsize, too.
thanks but..no..I want to have a different look for each album inside the albums..just as I managed to do in my previous way and as you can see at http://www.thegreenskirt.nl/site/projects as you can see if you open the first three albums they all look different.
however your reply,using the albumtitle can give a simple solution too.
at the top of album php just under