Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

DotNetNuke Marketplace
  Ads  
Engage Software - Training Partner for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  How to add a CSS file to a module
Previous Previous
 
Next Next
New Post 9/11/2006 11:36 AM
User is offline Phillip Williams
7 posts
10th Ranked


How to add a CSS file to a module 
I have developed a module in DNN4.3.4 (using asp.net2.0 and vs2005).  I tried to placed a file named "module.css" in the folder ~/DeskTopModules/MyModule/ but it does not seem to be added to the head section of the default page when the module is loaded.  Can any one help pointing me in the right direction on how to cause the .css file to load when the module loads? 
 
New Post 9/11/2006 6:56 PM
User is offline Joe Brinkman
1332 posts
www.dotnetnukecorp.com
6th Ranked






Re: How to add a CSS file to a module 
Have you looked at the html source to see if the module.css has an incorrect reference?  You should just need the module.css in the module directory.  But it must be in the root of the module directory, not in a subdirectory.  You can see the logic for injecting module.css in the Skin.vb InjectModule method.
Joe Brinkman
DotNetNuke Corp.

The Accidental Geek - Joe Brinkman

 
New Post 9/12/2006 2:13 AM
User is offline Phillip Williams
7 posts
10th Ranked


Re: How to add a CSS file to a module 
Thanks a lot for responding, jbrinkman.  The module.css worked, indeed, when I uploaded the distribution package. Thanks again for your help.
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  How to add a CSS file to a module
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Convert Visitors to Customers
In order to bring value to your users, we must first understand them. VIVIDSITES will help you build a custom web application and interactive marketing tools that your users will thank you for. We marry high-end creative with head banging technology to entertain and convert visitors into paying customers. Call 314.514.0505 or visit us at http://www.vividsites.com to find out how.
- V I V I D S I T E S -
Gearworx Web Hosting
As a premier provider of Web Hosting, Private/White Label hosting, Server Colocation, Dedicated Server, and other Managed Services, Gearworx offers an array of services designed to more effectively manage strategies driving businesses on the Web. Headquartered in Fremont, California our state of the art tier one data centers and distributed managed services environment enables Gearworx to offer your business enterprise level solutions through simplified processes.
Gearworx Web Hosting
Glanton: Enterprise Intranet Specialists Using DNN
Glanton Solutions are a premier provider of sevices for large corporates lloking to outsource Intranet sites.
www.glanton.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP