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...Using Modules a...Using Modules a...Custom control SkinPath Custom control SkinPath
Previous
 
Next
New Post
11/14/2011 2:35 AM
 
<strong>I need help please<br /> I have create custom crontrol that i use in my index.asxc, and i can't resolve SkinPath for my images, or css ...<br /> </strong><br /> <strong><span style="text-decoration: underline;">index.ascx</span></strong><br /> <%@ Control language="vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.Skins.Skin" %><br /> <%@ Register TagPrefix="dnn" TagName="NAV" Src="~/Admin/Skins/Nav.ascx" %><br /> <%@ Register TagPrefix="dnn" TagName="LOGIN" Src="~/Admin/Skins/Login.ascx" %><br /> <%@ Register TagPrefix="dnn" TagName="LEFTMENU" Src="~/Admin/Skins/LeftMenu.ascx" %><br /> <%@ Register TagPrefix="dnn" TagName="LINKS" Src="~/Admin/Skins/Links.ascx" %><br /> <%@ Register TagPrefix="dnn" TagName="STYLES" Src="~/Admin/Skins/Styles.ascx" %><br /> <%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Web.DDRMenu.TemplateEngine" Assembly="DotNetNuke.Web.DDRMenu" %><br /> <%@ Register TagPrefix="dnn" TagName="MENU" src="~/DesktopModules/DDRMenu/Menu.ascx" %><br /> <%@ Register TagPrefix="dnn" TagName="CONTROLPANEL" Src="~/Admin/Skins/controlpanel.ascx" %><br /> <strong><%@ Register TagPrefix="dnn" TagName="myControl" src="myControl/CustomControl.ascx" %></strong><br /> <br /> <div id="DNN6" class="ThreeCol"><br />   <div id="Background"></div><br />     <div id="Header"><br />         <div id="ContentBG"><br />             <div id="ControlPanelWrapper"><br />                 <dnn:CONTROLPANEL runat="server" id="cp"  IsDockable="True" /><br />    </div><br />    <div class="Content"><br />                 <div id="Nav"><br />    <dnn:MENU ID="MENU1" MenuStyle="DNNMega" runat="server" Visible="False"></dnn:MENU><br />    </div><br />    </div><br />         </div><br /> </div><br />     <div id="Content"><br />         <div id="Panes"><br />    <div id="myHeader"><br /> <div id="myDiv">  <br /> <span class="Apple-tab-span" style="white-space: pre;"> </span><strong><dnn:myControl ID="myControl1" runat="server" Visible="True" /></strong><br /> </div> <br />    </div><br />             <div id="ContentPane" runat="server"></div> ...<br /> <div><br /> <strong><span style="text-decoration: underline;">CustomControl.ascx</span></strong><br /> <link rel="stylesheet" href="<strong><%=SkinPath %></strong>style.css" type="text/css" media="screen" /><br /> <div id="myID"><br />     <img src="<strong><%=SkinPath %></strong>image.jpg" alt="" />  <br /> </div><br /> <br /> </div> I have read forums, and it seems there is no solution ?<br /> when i use full path <img src="/Portals/0/Skins/Skin1/mycontrol/image.jpg" alt="" />  it is working, <br /> <strong>but is it any way to get <%=SkinPath %> or similar working skin path?<br /> </strong><br /> Thanks ...<br />
 
New Post
11/14/2011 1:44 PM
 
<strong>I need help please<br /> I have create custom crontrol that i use in my index.asxc, and i can't resolve SkinPath for my images, or css ...<br /> </strong><br /> <strong><span style="text-decoration: underline;">index.ascx</span></strong><br /> <%@ Control language="vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.Skins.Skin" %><br /> <%@ Register TagPrefix="dnn" TagName="NAV" Src="~/Admin/Skins/Nav.ascx" %><br /> <%@ Register TagPrefix="dnn" TagName="LOGIN" Src="~/Admin/Skins/Login.ascx" %><br /> <%@ Register TagPrefix="dnn" TagName="LEFTMENU" Src="~/Admin/Skins/LeftMenu.ascx" %><br /> <%@ Register TagPrefix="dnn" TagName="LINKS" Src="~/Admin/Skins/Links.ascx" %><br /> <%@ Register TagPrefix="dnn" TagName="STYLES" Src="~/Admin/Skins/Styles.ascx" %><br /> <%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Web.DDRMenu.TemplateEngine" Assembly="DotNetNuke.Web.DDRMenu" %><br /> <%@ Register TagPrefix="dnn" TagName="MENU" src="~/DesktopModules/DDRMenu/Menu.ascx" %><br /> <%@ Register TagPrefix="dnn" TagName="CONTROLPANEL" Src="~/Admin/Skins/controlpanel.ascx" %><br /> <strong><%@ Register TagPrefix="dnn" TagName="myControl" src="myControl/CustomControl.ascx" %></strong><br /> <br /> <div id="DNN6" class="ThreeCol"><br /> <div id="Background"></div> <br /> <div id="Header"><br /> <div id="ContentBG"><br /> <div id="ControlPanelWrapper"><br /> <dnn:controlpanel runat="server" id="cp" isdockable="True"><br /> </dnn:controlpanel></div> <br /> <div class="Content"><br /> <div id="Nav"><br /> <dnn:menu id="MENU1" menustyle="DNNMega" runat="server" visible="False"></dnn:menu><br /> </div> <br /> </div> <br /> </div> <br /> </div> <br /> <div id="Content"><br /> <div id="Panes"><br /> <div id="myHeader"><br /> <div id="myDiv"> <br /> <span class="Apple-tab-span" style="white-space: pre;"> </span><strong><dnn:mycontrol id="myControl1" runat="server" visible="True"></dnn:mycontrol></strong><br /> </div> <br /> </div> <br /> <div id="ContentPane" runat="server"></div> ...<br /> <div><br /> <strong><span style="text-decoration: underline;">CustomControl.ascx</span></strong><br /> <li nk rel="stylesheet" href="<b><%=SkinPath %></b>style.css" type="text/css" media="screen" /> <div id="myID"><br /> <img alt="" src="<b><%=SkinPath %></b>image.jpg" /> <br /> </div> <br /> <br /> </div> I have read forums, and it seems there is no solution ?<br /> when i use full path <img alt="" src="/Portals/0/Skins/Skin1/mycontrol/image.jpg" /> it is working, <br /> <strong>but is it any way to get <%=SkinPath %> or similar working skin path?<br /> </strong><br /> Thanks ...<br /> </div> </div> </div>
 
New Post
11/14/2011 1:47 PM
 
I HAVE EDITED IN "Rich Text Editor", WHY IS NOT RENDERED AS HTML ?
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Custom control SkinPath Custom control SkinPath


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