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, ...howto get path to image for runat=server asp controls in skin ?howto get path to image for runat=server asp controls in skin ?
Previous
 
Next
New Post
2/19/2010 3:05 AM
 

 I've search forum but no answer to this question found....

I have skin that uses DNNTreeView control for navigation, works great, U can check on ma.cenia.cz. What I am trying to do now is that I want to create normal install package which causes me serious problems.

My treeView uses custom images (I hate the original ones with dnn) and also updated layout, so inside ascx is something like:

 

  <div id="LeftPane" runat="server" class="TreeViewMenu_Body">

    <dnn:TREEVIEW runat="server" id="dnnTREEVIEW"

      level="root" 

      nowrap="true"

      TreeIndentWidth="2" 

      IncludeHeader="False"

      ForceDownLevel="True"

      NodeCollapseImage="~/images/minusBig.gif"

...

as U might see path for image is fixed to dnn root images folder (where I have images now). But when deploy as package I will need to include my images in Skin package and skin folder. I've tried almost all but nothing works. The context path of my skin is some /admin/skins.... and no way to force it to my current skin folder

Can anybody please help?

BTW: if anybody needs such a specific skin, please let me know, I can help with implement, it is not so easy to transfer fully from one dnn to another

 

 
New Post
2/19/2010 6:14 PM
 
perhaps the core SkinPath token might suit -you can use it within your skin.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
2/20/2010 8:54 AM
 

Can U please provide some example what exactly do U mean ?

because if mention <%=skinpath%>, by my experience, it can be hardly used on runat=server tags ?? I am I right ?

Adam

 
New Post
2/20/2010 9:02 AM
 

I think you can use < % # SkinPath% > in your skin and it should work in control attributes too.

 

Please note that's #, NOT =

 
New Post
2/20/2010 2:09 PM
 

Timo,

please see this article, syntax U describe is NOT allowed within attribute list of runat=server tag!!

any other usefull hint ?

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...howto get path to image for runat=server asp controls in skin ?howto get path to image for runat=server asp controls in skin ?


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