viewing the album description actually within the album

bpd@darb.net

Joined: 2002-08-20
Posts: 101
Posted: Tue, 2003-04-22 13:25

im sure its relatively simple but havent been able to isolate with my limited knowledge ... any ideas?

You get the album title in the top left when viewing, but not the description.

 
BorgKing
BorgKing's picture

Joined: 2002-09-12
Posts: 313
Posted: Tue, 2003-04-22 16:46

Yes, it's easy. I added the following code in view_albums.php, where it displays the description above the photos, but only on the first page.
If you want it on every page beneath the title, just leave out the if-statement and place the code in album.header. That should work too, although I haven't tested it.
<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE>
<?php
if ($page == 1)
{
print "<br><center>".$gallery->album->fields["description"]."</center>";
}
?>
</TD></TR></TABLE><!-- BBCode End -->

 
bpd@darb.net

Joined: 2002-08-20
Posts: 101
Posted: Tue, 2003-04-22 17:07

sweet, that works perfectly. I did it in html_wrap and lefted it.

http://darb.net/albums.php

thanks :wink:

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3473
Posted: Tue, 2003-04-22 21:49

$gallery->album->fields['description']

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3473
Posted: Tue, 2003-04-22 21:50

Doh... sorry! Ignore me...