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

HomeHomeOur CommunityOur CommunityCommunity Membe...Community Membe...FREE Ultimate Skin ObjectFREE Ultimate Skin Object
Previous
 
Next
New Post
6/1/2010 12:53 PM
 

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 ;)

These instructions will walk you through how to install & remove the "Dotnetnuke 5.4.2+ Ultimate Skin Object".

CODEPLEX PROJECT URL: http://ultimateskinobject.codeplex.com/

 

SKIN OBJECT REQUIREMENTS:

-DNN 5.4.2+

NOTE: INJECTING JAVASCRIPT FILES BEFORE DNN 5.4.2 WILL CAUSE THE INJECTED JAVASCRIPT FILES TO BE LOADED BEFORE JQUERY (THIS BUG WAS FIXED IN DNN 5.4.2)

 

SKIN OBJECT ATTRIBUTES:

ATTRIBUTE NAME: DEFAULT VALUE: OTHER VALUES: DESCRIPTION:
MySkinDocType HTML 4.01 Transitional

HTML 5
XHTML 1.0 Transitional
XHTML 1.0 Strict
XHTML 1.1
HTML 4.01 Strict
HTML 4.01 Transitional

MySkinDocType will allow you to set the skin doc tpe for your page. By leaving the value empty it will use the legacy "HTML 4.01 Transitional" doc type by default.
RemoveCssFiles  

Examples:

  • "Default.css" to not load Default.css
  • "DesktopModules/SomeModule/Module.css" to not load a specific modules.css
  • "Module.css" to not load any Modules.css file
  • "/" will not load any CSS files
  • "Default.css,Portal.css" will not load Default.css & Portal.css
RemoveCssFiles will exclude a comma seperated list of css files that will automatically be unloaded from your skin to help improve proformance of your website & will also stop those annoying default DNN style from loading.
AddCssFiles  

Examples:

  • "mynewcssfile1.css" will add your css file to your skin
  • "mynewcssfile1.css,portals/0/mynewcssfile2.css" will add two new css files to your skin
AddCssFiles allows you to easily inject a comma seperated list of css files to your skin.
AddJsFiles  

Examples:

  • "mynewjsfile1.js" will add your js file to your skin
  • "mynewjsfile1.js,js/mynewjsfile2.js" will add two new js files to your skin
AddJsFiles allows you to easily inject a comma seperated list of css files to your skin.
LoadJQueryScripts No Yes If you set the LoadJQueryScripts value to "Yes" then it will load the JQuery library that you defined in your host settings page.

 

INSTALLATION INFORMATION:

STEP 1 - INSTALL THE SKIN OBJECT:

-Install this skin object using the extension installer (HOST > EXTENSTIONS > INSTALL EXTENTSION WIZARD)

 

STEP 2 - ADD THE SKIN OBJECT TO YOUR SKIN (JUST CHOOSE THE METHOD THAT SUITS YOUR SKINNING METHOD FROM BELOW):

-METHOD 1: ASCX Skin Object Example (RECOMMENDED - Supported in all DNN versions)

<%@ Register TagPrefix="dnn" TagName="MWD_ULTIMATESKINOBJECT" Src="~/DesktopModules/MWD/Skin Objects/UltimateSkinObject/UltimateSkinObject.ascx" %>

<dnn:MWD_ULTIMATESKINOBJECT runat="server" id="MWD_ULTIMATESKINOBJECT" MySkinDocType="XHTML 1.0 Transitional" RemoveCssFiles="Default.css,Portal.css" AddCssFiles="mynewcssfile1.css,portals/0/mynewcssfile2.css" AddJsFiles="mynewjsfile1.js,js/mynewjsfile2.js" LoadJQueryScripts="Yes" />

 

-METHOD 2: HTML Skin Object Example (Only supported in DNN 5+)

<object id="MWD_ULTIMATESKINOBJECT" codetype="dotnetnuke/server" codebase="MWD_ULTIMATESKINOBJECT">
    <param name="MySkinDocType" value="XHTML 1.0 Transitional" />
    <param name="RemoveCssFiles" value="Default.css,Portal.css" />
    <param name="AddCssFiles" value="mynewcssfile1.css,portals/0/mynewcssfile2.css" />
    <param name="AddJsFiles" value="mynewjsfile1.js,js/mynewjsfile2.js" />
    <param name="LoadJQueryScripts" value="Yes" />
</object>

 

-METHOD 3: HTML Skin Token & XML File Example (Depreciated method that was being used in DNN 4.9x versions & below)

[MWD_ULTIMATESKINOBJECT]

You will also need to create an XML file in your skin directory called "skin.xml" with the following code in it:

<Object>
    <Token>[MWD_ULTIMATESKINOBJECT]</Token>
    <Settings>
        <Setting>
            <Name>MySkinDocType</Name>
            <Value><![CDATA[XHTML 1.0 Transitional]]></Value>
        </Setting>
        <Setting>
            <Name>RemoveCssFiles</Name>
            <Value><![CDATA[Default.css,Portal.css]]></Value>
        </Setting>
        <Setting>
            <Name>AddCssFiles</Name>
            <Value><![CDATA[mynewcssfile1.css,portals/0/mynewcssfile2.css]]></Value>
        </Setting>
        <Setting>
            <Name>AddJsFiles</Name>
            <Value><![CDATA[mynewjsfile1.js,js/mynewjsfile2.js]]></Value>
        </Setting>
        <Setting>
            <Name>LoadJQueryScripts</Name>
            <Value><![CDATA[Yes]]></Value>
        </Setting>
    </Settings>
</Object>

 

STEP 5 - CLEAR YOUR BROWSERS CACHE & REFRESH THE PAGE:

-Now you should see the be able to see the changes that have been made to your skin - view the souce code of the page and look at the doc type, look for css style sheets that you have excluded from your skin & tcheck to see if the JQuery scripts were loaded.

 

REMOVAL INSTRUCTIONS:

STEP 1 - REMOVE THE SKIN OBJECT FROM YOUR SKIN (JUST REMOVE THE CODE THAT WAS ORGINALLY USED WHEN YOU ADDED THE OBJECT TO YOUR SKIN):

-METHOD 1: ASCX Skin Object Example (RECOMMENDED - Supported in all DNN versions)

<%@ Register TagPrefix="dnn" TagName="MWD_ULTIMATESKINOBJECT" Src="~/DesktopModules/MWD/Skin Objects/UltimateSkinObject/UltimateSkinObject.ascx" %>

<dnn:MWD_ULTIMATESKINOBJECT runat="server" id="MWD_ULTIMATESKINOBJECT" MySkinDocType="XHTML 1.0 Transitional" RemoveCssFiles="Default.css,Portal.css" AddCssFiles="mynewcssfile1.css,portals/0/mynewcssfile2.css" AddJsFiles="mynewjsfile1.js,js/mynewjsfile2.js" LoadJQueryScripts="Yes" />

 

-METHOD 2: HTML Skin Object Example (Only supported in DNN 5+)

<object id="MWD_ULTIMATESKINOBJECT" codetype="dotnetnuke/server" codebase="MWD_ULTIMATESKINOBJECT">
    <param name="MySkinDocType" value="XHTML 1.0 Transitional" />
    <param name="RemoveCssFiles" value="Default.css,Portal.css" />
    <param name="AddCssFiles" value="mynewcssfile1.css,portals/0/mynewcssfile2.css" />
    <param name="AddJsFiles" value="mynewjsfile1.js,js/mynewcssfile2.js" />
    <param name="LoadJQueryScripts" value="Yes" />
</object>

 

-METHOD 3: HTML Skin Token & XML File Example (Depreciated method that was being used in DNN 4.9x versions & below)

[MWD_ULTIMATESKINOBJECT]

You will also need to create an XML file in your skin directory called "skin.xml" with the following code in it:

<Object>
    <Token>[MWD_ULTIMATESKINOBJECT]</Token>
    <Settings>
        <Setting>
            <Name>MySkinDocType</Name>
            <Value><![CDATA[XHTML 1.0 Transitional]]></Value>
        </Setting>
        <Setting>
            <Name>RemoveCssFiles</Name>
            <Value><![CDATA[Default.css,Portal.css]]></Value>
        </Setting>
        <Setting>
            <Name>AddCssFiles</Name>
            <Value><![CDATA[mynewcssfile1.css,portals/0/mynewcssfile2.css]]></Value>
        </Setting>
        <Setting>
            <Name>AddJsFiles</Name>
            <Value><![CDATA[mynewjsfile1.js,js/mynewjsfile2.js]]></Value>
        </Setting>
        <Setting>
            <Name>LoadJQueryScripts</Name>
            <Value><![CDATA[Yes]]></Value>
        </Setting>
    </Settings>
</Object>

 

STEP 2 - REMOVE THE DNN SKIN OBJECT:

-Delete this skin object using the from extension page (HOST > EXTENSTIONS)

 

STEP 3 - CLEAR YOUR BROWSERS CACHE & REFRESH THE PAGE:

-The skin object should now be completely removed :)

 

 
New Post
6/1/2010 6:51 PM
 
Nice! :)

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
6/1/2010 8:27 PM
 
Hi very nice tool   :-)    - is there any reason it can't be used in earlier versions of DotNetNuke?

Nina

Nina Meiers My Little Website
If it's on DNN, I fix, build, deploy, support,skin, host, design, consult, implement, integrate and done since 2003.
Who am I? Just a city chic, having a crack at organic berry farming.. and creating awesome websites.
 
New Post
6/2/2010 1:13 AM
 
Nina Meiers wrote:
Hi very nice tool   :-)    - is there any reason it can't be used in earlier versions of DotNetNuke?

Nina

I built this with limited time & haven't tested it in any versions prior to DNN 5.4.2. You welcome to try it but this is what I would expect:

MySkinDocType - should work in all DNN versions

RemoveCssFiles - should work in all DNN versions

AddCssFiles - should work in all DNN versions

AddJsFiles - should work in all DNN versions (BUT if using it to add additional JQuery plugins in a version of DNN below 5.4.2, the JQuery framework will NOT be loaded first & your plugin will not work due to a bug in DNN - see DNN-10879)

LoadJQueryScripts - will require DNN 5+ to work as this was when JQuery was implemented into the DNN framework

 
New Post
6/2/2010 7:34 AM
 
Thanks for sharing, this comes in quite handy. Let's hope that this functionality will be part of the core some day..
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityCommunity Membe...Community Membe...FREE Ultimate Skin ObjectFREE Ultimate Skin Object


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