Learn More





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, ...What is the PathNameAlias and how is it used in a skin?What is the PathNameAlias and how is it used in a skin?
New Post
9/15/2015 7:06 PM

I have noticed that some skin files have a line that looks like this

<dnn:DnnCssInclude ID="bootStrapCSS" runat="server" FilePath="css/bootstrap.min.css" PathNameAlias="SkinPath" Priority="14" />

Can someone explain what PathNameAlias is and how it should be used. For example if you want to reference files in a different folder, like "assets/owlcarousel/owl.carousel.css" does one create a different PathNameAlias or does it refer to the skinpath?

 Also can the priority be the same on more than one of the referenced files?

New Post
9/15/2015 10:59 PM

 Now I am seeing this construct for including external style sheets.  Is there a preferred method? 

<dnn:STYLES runat="server" id="Styles1" Name="bootstrap" StyleSheet="CSS/bootstrap.css" UseSkinPath="true" />

New Post
9/16/2015 11:26 AM
Hi James,

The PathNameAlias refers to the the folder where the file will reside. There are only 2 options for this: SkinPath (current skin folder) and SharedScripts (~/Resources/Shared/Scripts). So, if you are adding CSS for your skin you would want to chose the SkinPath value. Then, the FilePath value is relative to your root skin folder. The Priority can be the same on the files if it doesn't matter which order they load in relation to the other files with the same priority.

Using the DNNCSSInclude allows the files to be combined through the Client Resource Manager helping in performance. The Styles skin object allows for additional customization that is not available in DNNCSSInclude control, such as conditions for IE and IE versions as well as targeting media devices such as screen width.

You can find more info about these here:
Client Resource Management API here:
DNN Styles Skin Object:
Shameless plug to the DNN 7 book:

Hope this helps!

Ralph Williams, Jr.
UX Designer / Front-End Web Developer
Ralph Williams Consulting

Professional DNN7: Open Source .NET CMS Platform
New Post
9/16/2015 11:55 AM

Thank You. 

It is a joy to get a complete and well written answer to a question on the forum.

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...What is the PathNameAlias and how is it used in a skin?What is the PathNameAlias and how is it used in a 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.
Try Evoq
For Free
Start Free Trial
a Demo
See Evoq Live
Need More Information?