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, ...Reference additional CSS file from the skin?Reference additional CSS file from the skin?
Previous
 
Next
New Post
6/6/2010 2:16 PM
 
Is there way to inject another reference to a css file in the header of the page from the skin?

Thanks,
Mike
 
New Post
6/6/2010 2:25 PM
 
Scratch that ... I forget I had wrote this a long time ago:

Protected Sub AddStyleSheet(ByVal ss as string, ByVal media as string)
Dim css as new HtmlLink()
css.Href = SkinPath & ss
css.Attributes("rel") = "stylesheet"
css.Attributes("type") = "text/css"
Page.Header.Controls.Add(css)

End Sub

 
New Post
6/6/2010 9:31 PM
 
Or you could just use http://ultimateskinobject.codeplex.com/

Ultimate Skin Object is a Dotnetnuke 5.4.2+ extension that will allow you to easily change your skins doc type, remove unneeded css files, inject extra css files, inject extra javascript files & load JQuery in your skin quickly & easily ;)
 
New Post
6/7/2010 2:29 AM
 
If you want to control this through the UI/Page level using a module, I use DNNStuff InjectAnything for all my addition CSS (it's easier to change then tweaking skins each time and I can then cache it heavily and add multiple scripts at a time at page level). There's also a free mod called CSS Include.

The skinobject is great for un-including CSS tho ;)

Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
6/7/2010 4:47 AM
 

Another option, just to add to the topic of the thread, would be to add a link to the css file in Page > Settings > Advanced Settings > Page Header Tags.

Rick.



PSDtoDNN - You supply the artwork... we'll build the skins!™
Website | Twitter | YouTube | Skype
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Reference additional CSS file from the skin?Reference additional CSS file from the 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