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

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...TreeMenu ImagesTreeMenu Images
Previous
 
Next
New Post
11/21/2006 1:58 PM
 
I have been trying to style the TreeMenu to look much nicer than the default skins.

I had a look at the new documentations and it seems that I can do much more now. However, I am finding difficulty in the Images

At first I thought it is going to be a piece of cake and for example in my skin i did skin.xml

< Setting >
< Name>NodeClosedImage< /Name>
< Value>Tree_NodeClosedImage< /Value>
< /Setting>

which has the associated to skin.css

.Tree_NodeClosedImage{ background-image:url(Images/folderclosed.gif); background-repeat:no-repeat;}


However the control is still pointing to

http://localhost/DNN43/Admin/Skins/Tree_NodeExpandImage

Which is not good

< Value>

So I assume the images are hard coded to theAdmin/Skins/ folder so the value of the NodeCloseImage has to be directly the gif associated with it in the admin/ skin folder.

This is ok if there is only one DNN per install so one puts all the necessary images in there. But ideally one should be able to put it in the skin folder.

Any Ideas is very much appreciated. May be I have missed something.

Salar
 
New Post
11/21/2006 2:42 PM
 

I think you are misunderstanding the property.  All properties that end with CssClass are css class names.  This property ends in Image, which means it is a reference to an Image src.  (I believe you found this out already).

Looking at the code a ResolveUrl is called.  From the MSDN docs.

If the relativeUrl parameter contains an absolute URL, the URL is returned unchanged. If the relativeUrl parameter contains a relative URL, that URL is changed to a relative URL that is correct for the current request path, so that the browser can resolve the URL.

For example, consider the following scenario:

  • A client has requested an ASP.NET page that contains a user control that has an image associated with it.

  • The ASP.NET page is located at /Store/page1.aspx.

  • The user control is located at /Store/UserControls/UC1.ascx.

  • The image file is located at /UserControls/Images/Image1.jpg.

If the user control passes the relative path to the image (that is, /Store/UserControls/Images/Image1.jpg) to the ResolveUrl method, the method will return the value /Images/Image1.jpg.

So it looks like if you pass in an absolute url you would be ok... the question for the skinner is whether there is a replacement token that can be used that will allow the xml property to be prefixed with the skin path... 


 
New Post
11/22/2006 1:41 AM
 

Did the same test, same result.

The folder  /DNN43/Admin/Skins/Tree_NodeExpandImage makes no sense as it never should store images its the folder for the skin objects ascx.

Did some try to add skinpath but couldnt get rid of "DNN43/Admin/Skins"

If you need some more testing in this area I am a volunteer.

Jan

 
New Post
11/22/2006 1:26 PM
 
Jon

Firstly many thanks for your detailed answer.

Unfortunately it seems that my last long post was never published.

The week I am working from a hotel in Venice and my access is a slow modem. :( back to dark ages. So it seems to me that

The forum looses the post completely when the update is too slow due to the bandwidth issues.

I am not going to make the same long post but here is the essence of it.

My UI enhancements works just fine so long I add my images to Admin/Skin folder.

Since this does not work either

< Setting>
< Name>NodeClosedImage< /Name>
< Value>< ![CDATA[< img src="images/folderclosed.gif" border="0" align="absmiddle">]]>< /Value>
< /Setting>


Which results

http://localhost/DNN43/Admin/Skins/%3Cimg%20src=%22portals/_default/images/folderclosed.gif%22%20border=%220%22%20align=%22absmiddle%22%3E

Regards

Salar
 
New Post
11/22/2006 9:01 PM
 

Salaro,

this works NodeClosedImage="~/images/folderclosed.gif"  in the standard image folder but I cant find a way to have it in "Skinpath".

How it find the admin/Skin folder is a mystery for me...

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...TreeMenu ImagesTreeMenu Images


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