albumtree width display limit?
The Webmistress
Joined: 2007-03-20
Posts: 97 |
Posted: Fri, 2008-02-22 19:26 |
I've got users creating albums within albums. Problem is, (when expanding an album in the tree) as the levels increase the width of the menu area expands to accomodate, which shrinks the main area of the page. I don't want that.. and some Internet Explorer versions don't recognize overflow properties. Netscape hides the overflow fine. So to accomodate IE, what I did was change Works great for level one and two BUT the rest of the levels aren't stripped and still cause the menu area to expand. Any suggestions?
|
|
Posts: 27300
This is just a guess. Edit /modules/albumselect/templates/blocks/AlbumSelect.tpl
{$albumTree}.add({$node.nodeId}, {$node.parentNode}, "{$data.titlesForJs[$node.id]}", pf+'{$data.links[$node.id]}');
to
{$albumTree}.add({$node.nodeId}, {$node.parentNode}, "{$data.titlesForJs[$node.id]|truncate:26:""}", pf+'{$data.links[$node.id]}');
See:
http://www.smarty.net/manual/en/language.modifier.truncate.php
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 97
Thank you floridave, I'm going to look into that.
In the meantime, what I did was specify (can't quite remember where) that the line wrap, it was set to not wrap. Quick fix, not quite what I want, but at least it prevented the sidebar from expanding on me.
Thanks, gonna definitely tackle that one.
Annie
Gallery WIP: http://www.evlrocks.com