Hi. I'd like to find a way to add a css class (or id) to the body element, depending on the main parent album that I'm in. So that I can create special styles only for certain albums. For example: <body class="parent-album-id-7">. Does anyone know how to do this ?
Comments
http://www.zenphoto.org/documentation/functions/_functions.php.html#functiongetUrAlbum
<body class="top_album_<?php getUrAlbum() ?>">
<body class="top_album_<?php getUrAlbum("mariages") ?>">
<body class="top_album_<?php getUrAlbum(mariages) ?>">
<body class="top_album_<?php getUrAlbum($album) ?>">
none of them work - I get top_album_(empty) . What should I replace "$album" with ?
The image is the album "mariages", which is in the album "laeticia". I need to get that top album printed. Any ideas ?
`getUrAlbum($_zp_current_album);`
Generally, it is a good idea to read the documentation on functions you intend to use. Don't expect the developers to remember details while reading posts.
Sorry for my ignorance. Thanks again.