romamor
10-31-2006, 10:58 PM
I am testing my first template on my PC but I have a couple of problems I don't know how to solve.
Specifically, I need my browse_template to show one thumb from each category (i.e. album) that I have, with the category name under the thumb. When I click on the thumb, I need to get an album page showing the thumbs for that album.
So, I tried to use the THUMBNAILS or THUMBNAILS_WHOLE_PAGED tags, but I need to wrap the html for each thumb in a <div class="thumb"> , like this:
<div class="thumb">
<a href="..."><img src="../photo.jpg" width="60" height="60"/></a>
<p class="thumb_caption">Travel</p>
</div>
Of course, putting the THUMBNAILS tag inside the div, places all my thumbs in a single div, and my layout breaks. This is problem number one.
The second problem is that I need to pull only one thumb from each category (i.e. album, to represent that album in my galleries/archives page).
I don't know if this is feasible without massive hacking in the pixelpost code, in any case, I'd appreciate any hints on how to go about it.
At the very least, I'd be happy to just solve the first problem, so that at least I get a layout that does not brake.
Specifically, I need my browse_template to show one thumb from each category (i.e. album) that I have, with the category name under the thumb. When I click on the thumb, I need to get an album page showing the thumbs for that album.
So, I tried to use the THUMBNAILS or THUMBNAILS_WHOLE_PAGED tags, but I need to wrap the html for each thumb in a <div class="thumb"> , like this:
<div class="thumb">
<a href="..."><img src="../photo.jpg" width="60" height="60"/></a>
<p class="thumb_caption">Travel</p>
</div>
Of course, putting the THUMBNAILS tag inside the div, places all my thumbs in a single div, and my layout breaks. This is problem number one.
The second problem is that I need to pull only one thumb from each category (i.e. album, to represent that album in my galleries/archives page).
I don't know if this is feasible without massive hacking in the pixelpost code, in any case, I'd appreciate any hints on how to go about it.
At the very least, I'd be happy to just solve the first problem, so that at least I get a layout that does not brake.