HI all,
I have seen it on many galleries but cannot find any post about it, or at least not the one that would explain how to do that.
Next to the highlighted foto and the album info, I'd like to have a list of nested albums.
Thanks in advance for your help.
Agatka :smile:
Posts: 1301
Hi
Run config.php again - it's line 55:
----------
$gallery->app->showAlbumTree = "yes";
----------
Right now yours probably says "no".
Regards,
Gaile
Posts: 140
Thanks a lot Gaile :smile:.
Do you know how I can add, let say a bullet in front of each line listing the nested albums? Don't know where I could actually format the appereance of the sub-albums tree.
Thanks
Agatka
Posts: 140
Nevermind :smile
I got it. :smile:
http://galeria.agatka.net
Posts: 144
how did you do that i love the look of your gallery
Posts: 140
Hi drazin,
How did I do what? The little bullets in fron of the nested album? I inserted the picture in fron of the link to the nested albums.
If you want to customize your look of that section you have to do it in util.php. The code that is responsible for that part starts somewhere around line 1141. Here is what my customized code looks like:
echo "<div style="margin: 0px 0px 0px 8px">";
echo "<table border="0" cellpadding="0" cellspacing="0" width="100%">";
echo "<tr>";
echo "<td width="10">";
echo "<img border="0" src="http://www.jambra.com/images/dotka.jpg" align="top" hspace="3">";
echo "</td>";
echo "<td>";
echo "<span class=fineprint>";
echo "<a href="";
echo makeAlbumUrl($myName);
echo "">$val2 $val3</a>n";
printChildren($myName,$depth+1);
echo "</td>";
echo "<tr>";
echo "<td>";
echo "<img border="0" src="http://www.jambra.com/images/spacer.gif" height="5" align="top">";
echo "</td>";
echo "</tr>";
echo "</tr>";
echo "</table>";
echo "</span>";
echo "</div>";
I basically created a table with two colums. The left column contains my bullet and the right the code that prints the nested album. I did it that way, so that the bullet is centered in front of the album title.
Good luck :smile:
Agatka