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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0how to add CSS file for a specific module?how to add CSS file for a specific module?
Previous
 
Next
New Post
3/26/2009 3:45 PM
 

please someone tell me when to insert a CSS code OR add a additionnal CSS file will be executed by the module that I created and thanks

 
New Post
3/26/2009 4:14 PM
 

Add a stylesheet named "Module.css" to your module's folder.  DNN will link to that stylesheet if it exists.  You may need to restart the site or re-import the module definition to get DNN to see the new file.

Hope that helps,


Brian Dukes
Engage Software
St. Louis, MO
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
New Post
3/27/2009 1:16 AM
 

Add module.css  to  the Module and verify in   "modulename.dnn"   file  following code was present if it was not present you have to write manually

Inside  <files>  node

  <file><path>module.css</path></file>

hope this may help you

 Arvind

 

 
New Post
3/27/2009 9:10 PM
 

 my module named Tab my qustion is can I put my css file name Tab.css but is should be module.css for DNN framework recognize it .

and this is my Tab.dnn  after whriting the code for the module.css

 

__________________________________________________________module.css______________________________________________________

 

 

<dotnetnuke version="3.0" type="Module">

  <folders>

    <folder>

      <name>Tab</name>

      <friendlyname>Tab</friendlyname>

      <foldername>Tab</foldername>

      <modulename>Tab</modulename>

      <description>Tab</description>

      <version>01.00.00</version>

      <businesscontrollerclass>

      </businesscontrollerclass>

      <modules>

        <module>

          <friendlyname>Tab</friendlyname>

          <cachetime>0</cachetime>

          <controls>

            <control>

              <src>DesktopModules/Tab/Tab.ascx</src>

              <type>View</type>

            </control>

          </controls>

        </module>

      </modules>

      <files>

        <file>

          <name>im1.jpg</name>

        </file>

        <file>

          <name>im2.png</name>

        </file>

        <file>

          <name>im3.png</name>

        </file>

        <file>

          <name>Module.css</name>

        </file>

        <file>

          <name>Tab.ascx</name>

        </file>

        <file>

          <name>Tab.ascx.vb</name>

        </file>

        <file>

          <path>module.css</path>

        </file>

 

      </files>

    </folder>

  </folders>

</dotnetnuke>

 

 
New Post
3/30/2009 3:14 PM
 

That manifest file looks fine (though you actually have an entry for module.css in there already, in addition to the entry that you've highlighted in red).

You can name the stylesheet the same name as a control, if you only want it to load for that specific control.  So, in your case, a stylesheet named Tab.css should load whenever Tab.ascx is loaded by DNN.

Hope that helps,


Brian Dukes
Engage Software
St. Louis, MO
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0how to add CSS file for a specific module?how to add CSS file for a specific module?


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