Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Customize Tree

 
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti
Author Message
o_dupuis



Joined: 18 Mar 2005
Posts: 18
Location: Paris/France

PostPosted: Fri May 06, 2005 8:21 am    Post subject: Customize Tree Reply with quote

Hi,
For large trees, not having colors make it difficult to read so I modified a bit one of the treeview js : $cacti_root/include
/treeview/ftiens4.js line 164 :

it was
docW = docW + this.desc + "</a>"

I modified it into
docW = docW + "<SPAN class='level"+this.level+"'>"+this.desc + "</span></a>"


Then I added the following styles in the main.css ($cacti_root/include)

.level1 {
font-weight: bold;
color: #000;
}

.level2 {
font-weight: bold;
}


.level3 {
color: #FF0000;
}

.level4 {
color: #009933;
}

.level5 {
color: #aaaa00;
}

The result is on the following image




Olivier



tree.GIF
 Description:
 Filesize:  4.09 KB
 Viewed:  3324 Time(s)

tree.GIF


Back to top
boomboxnation



Joined: 08 May 2005
Posts: 25

PostPosted: Tue Sep 20, 2005 12:18 pm    Post subject: Thanks Reply with quote

This really does make the tree view much much more clear. It should be submitted to the distribution...
Back to top
spignataro



Joined: 07 Nov 2005
Posts: 41

PostPosted: Thu Nov 10, 2005 3:01 pm    Post subject: Reply with quote

thanks so much for this fix....i was looking to some how fix this....awsome
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group