Products

Solutions

Resources

Partners

Community

About

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, ...SkinPath in DNN 9.2SkinPath in DNN 9.2
Previous
 
Next
New Post
3/21/2019 5:23 PM
 

I have  a bunch of old skins that have been updated over time to work with newer version of DNN, but it appears <%skinpath%> will no longer work in container files in DNN 9.2.  It works fine to refrence a CSS link in the skin .aspx files, but in the container .aspx files it throws an error and the CSS doesn't load.  Is there a new variable that will work here, or do I need to go through all my containers and replace <%skinpath%> with a unique path for each one?

 
New Post
3/22/2019 1:47 AM
 

Kevin,

something like this should work:

<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Web.Client.ClientResourceManagement" Assembly="DotNetNuke.Web.Client" %>
...
<dnn:DnnCssInclude ID="DnnCssThemeInclude" runat="server" FilePath="css/SomeStyleSheet.css" PathNameAlias="SkinPath" />

Happy DNNing!
Michael


Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
3/22/2019 1:00 PM
 
Hi Michael,

Thanks for the reply, but your solution is returning the css file from the skin directory. What I am trying to do get the css from the container directory.

For example, your method gets portals/_default/skins/skin_name/css/screen.css, but I am trying to access portals/_default/containers/skin_name/css/screen,css

Cheers,

Kevin
 
New Post
3/25/2019 7:02 AM
 
Kevin,

I don't think that there is a ContainerPath value for the PathNameAlias - but it could be worth posting a feature request at https://github.com/dnnsoftware/Dnn.Pl...

Happy DNNing!
Michael

Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...SkinPath in DNN 9.2SkinPath in DNN 9.2


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