Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryTree stylesTree styles
Previous
 
Next
New Post
6/20/2007 2:57 AM
 

I'm using the [TREE] in my Dashboard as per Steve's blog.  I have not used this DNN Tree up til now and would like to modify the style.  For example, where can I alter the font, alter/remove the folders, etc...

I tried applying a CSS Style in Dashboard.Index.xml but it doesn't seem to apply.

 
New Post
6/27/2007 11:38 PM
 

For anybody that's interested, I solved a part of my earlier post. In RepositoryDashboard.ascx.vb, adding the highlighted line allows setting the font style for the DNN Tree.  However, I haven't quite figured out how to enable a seperate font style for COUNT (will make readability better, I believe).  If anybody takes this a step further and figures out how to enable a seperate CSS style for COUNT when used with DNN Tree, I'd be interested.  I'd also like to go with blue folders as opposed to the standard yellow but that's a low priority.

Private Sub lstObjects_ItemDataBound

Select Case aTemplate(iPtr + 1)
Case "TREE"
If Not m_hasTree Then
Dim obj As New DnnTree
obj.ID = "__Categories"
obj.SystemImagesPath = ResolveUrl("~/images/")
obj.ImageList.Add(ResolveUrl("~/images/folder.gif"))
obj.IndentWidth = 10
obj.CollapsedNodeImage = ResolveUrl("~/images/max.gif")
obj.ExpandedNodeImage = ResolveUrl("~/images/min.gif")
obj.EnableViewState = True
obj.CheckBoxes = False
obj.CssClass = oRepositoryBusinessController.GetSkinAttribute(xmlDoc, "CATEGORY", "CssClass", "SubHead")
AddHandler obj.NodeClick, AddressOf TreeNodeClick
Dim bShowCount As Boolean = Boolean.Parse(oRepositoryBusinessController.GetSkinAttribute(xmlDoc, "CATEGORY", "ShowCount", "False"))
Dim Arr As ArrayList = categories.GetRepositoryCategories(m_RepositoryId, -1)
oRepositoryBusinessController.AddCategoryToTreeObject(m_RepositoryId, -1, Arr, obj, "", bShowCount)
objPlaceHolder.Controls.Add(obj)
m_hasTree = True
End If

 
New Post
6/30/2007 2:32 PM
 

I also tried to find a way to change the folder icons, but i can only that by replacing the folder icon in the /images directory..

I played some with TreeViewMenu.ascx.vb under admin/skins directory but nothing changes..

Where is that RepositoryDashboard.ascx.vb ? I am using 4.5.3 and i dont have such file..

Maybe it' nonsense to waste time playing with the icons :) but i will try to find a way.. i will be glad if you find a way and share..

 
New Post
6/30/2007 3:19 PM
 

To be clear, I am attempting to edit the Folder icons as used in the Repository module...which incorporates the DNNTree.  RepositoryDashboard.ascx.vb is found in the Repository source code and the code retrieving the Folder icons is probably the same as in the DNN core/DNNTree code-behind. 

In the case of the Repository, I am sure that I can edit the Repository source code to call icons from a different location but haven't done that yet.  Aside from that, I am unfamiliar with any way to alter the icons used by DNNTree using an XML file or CSS.

If anybody does, two of us would be interested.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryTree stylesTree styles


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out