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
{g->callback type="albumselect.LoadAlbumData" albumTree=true stripTitles=true}
TO
{g->callback type="albumselect.LoadAlbumData" albumTree=true stripTitles=true truncateTitles="26"}
in AlbumTree.tpl.

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?


Gallery version = 2.2.4 core 1.2.0.6
PHP version = 4.4.7 apache
Webserver = Apache
Database = mysqlt 4.0.16, lock.system=flock
Toolkits = NetPBM, Ffmpeg, Gd, ImageMagick, Thumbnail
Acceleration = none/0, none/900
Operating system = FreeBSD host543.ipowerweb.com 4.11-STABLE FreeBSD 4.11-STABLE #0: Wed Apr i386
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)

Annie
Gallery WIP: http://www.evlrocks.com

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2008-02-22 20:09

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

 
The Webmistress

Joined: 2007-03-20
Posts: 97
Posted: Sat, 2008-03-01 05:47

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