Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

HOW-TO: Adjusting the width of the album treeview column
Roger Martin
#1 Posted : Saturday, 27 November 2010 7:41:21 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

In 2.4 one can include a treeview of albums along the left side of the gallery. This is enabled in the Gallery Control Settings page in the site admin area. By default, the width of this column is 15% of the browser width. You may want to increase or decrease this width, or convert it to a fixed pixel width. This can be done by adjusting the CSS.

Here is an example that increases the width to 25% of the browser window.

1. Open these two files in a text editor: ca_styles.css and gallery.css. They are in the \gs\styles\directory.

DNN Users: In DotNetNuke, the files are located in \DesktopModules\GalleryServerPro\gs\styles\ and have a name unique to each gallery. For example, the files for portal 0 are ca_styles_portal0.css and gallery_portal0.css.

2. In ca_styles.css, find this line:

Code:
.gsp_ns .tv1TreeView {padding:5px 0 0 0;cursor:default;float:left;width:15%;min-height:100px;}


Change it to:

Code:
.gsp_ns .tv1TreeView {padding:5px 0 0 0;cursor:default;float:left;width:25%;min-height:100px;}


3. In gallery.css, find these two lines:

Code:
.gsp_ns .gsp_treeviewBuffer {margin-left:15% !important;}
.gsp_ns .gsp_treeviewBufferFullWidth {width:85%;margin-left:15% !important;}


Change them to:

Code:
.gsp_ns .gsp_treeviewBuffer {margin-left:25% !important;}
.gsp_ns .gsp_treeviewBufferFullWidth {width:75%;margin-left:25% !important;}


4. Also in gallery.css, find this line:

Code:
.gsp_floatcontainerWithTv {overflow:hidden;width:85%;margin-left:15% !important;}


and change it to this:

Code:
.gsp_floatcontainerWithTv {overflow:hidden;width:75%;margin-left:25% !important;}


5. Save the changes, then force a browser refresh to get the change. The album treeview width should now be 25% of the browser width.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Guest
#2 Posted : Thursday, 24 February 2011 2:59:45 AM(UTC)
Rank: Guest


Message was deleted by a Moderator.
galleryserverproo
#3 Posted : Monday, 16 May 2011 1:15:40 AM(UTC)
Rank: Member

Joined: 12/05/2011(UTC)
Posts: 24
Location: hn

I do as you direction but right column (next to leftTree) line break, it not friendly.

How to fix it for friendly?
Roger Martin
#4 Posted : Monday, 16 May 2011 7:47:12 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

I don't understand. Can you post a screen shot or give more detail?
Roger Martin
Creator and Lead Developer of Gallery Server Pro
galleryserverproo
#5 Posted : Monday, 16 May 2011 8:02:45 AM(UTC)
Rank: Member

Joined: 12/05/2011(UTC)
Posts: 24
Location: hn

Please see here, http://imageshack.us/m/8...1811mediadefaultasp.png

Roger, did you see my problems in image link above ? what do you think about?
Roger Martin
#6 Posted : Tuesday, 17 May 2011 7:26:03 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

You are right - my instructions left out one of the edits. I edited the original post to include the new step. See #4 above.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
galleryserverproo
#7 Posted : Tuesday, 17 May 2011 8:26:05 AM(UTC)
Rank: Member

Joined: 12/05/2011(UTC)
Posts: 24
Location: hn

It's resolved, very wonderful


Thanks Roger very very much.
Rss Feed  Atom Feed
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.