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  |  

$4.95 Windows Hosting at Webhost4life.com
  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

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


DotNetNuke Forums
 
  Forum  General DotNetN...  Make it Hot! ( ...  "Sharing" one html in different skins
Previous Previous
 
Next Next
New Post 4/3/2008 8:34 AM
Unresolved
User is offline Bouwe K. Westerdijk
4 posts
10th Ranked


"Sharing" one html in different skins 

Being a DNN newbie I have a question about the following: Suppose I have 10 portals in DNN, who all have their own skin. The HTML (DIV tags only) of all of these skins are the same, the only difference between the skins is the CSS and images they use.

Maybe there is a way that the skins can "share" the same HTML, so when the HTML changes, you don't have to change it on all skins?

And ofcourse in this HTML the corresponding CSS must be included "dynamically".

If a solution within DNN isn't possible, maybe there is a nice best practice outside of DNN?

Thanks!

 
New Post 4/3/2008 4:25 PM
User is offline Timo Breumelhof
1760 posts
5th Ranked




Re: "Sharing" one html in different skins 

You can use an include:

<!--#include file="includes/_images.inc-->

add this to aal your ascx files and put all the HTML in the include file


Timo Breumelhof -- www.searchdotnetnuke.com -- Extended DNN (forum) search
 
New Post 4/7/2008 1:24 AM
User is offline Bouwe K. Westerdijk
4 posts
10th Ranked


Re: "Sharing" one html in different skins 

Thanks for your reply, Timo!

Maybe I misunderstood your solution, but where do I put the HTML file, because all of the skins have their own folder? I think the HTML should be centralized outside of the skins folder?

And how does this centralized HTML "know" which CSS to include, as this has to be a different one depending on the skin?

I really hope this solution can work, but a quick test with using a ASCX who includes a HTML file left me with an empty skin... :(

 
New Post 4/7/2008 5:54 AM
User is offline Timo Breumelhof
1760 posts
5th Ranked




Re: "Sharing" one html in different skins 

You don't have to have seperate folders for the skins, you can group them in a folder.

you can do this:

Folder Myskins:

    File Red.ascx                  //Red Skin
    File Red.css                    //Red Skin specific CS

    File Green.ascx               //Green Skin
    File Green.css                //Green Skin specific CS

    File: Skin.css                  //CSS for all the skins in this folder
    Folder Includes:
          File myinclude.inc   //The include for all or some of the skin...

Hope it's clear...
        


Timo Breumelhof -- www.searchdotnetnuke.com -- Extended DNN (forum) search
 
New Post 4/7/2008 6:24 AM
User is offline Sebastien Fichot
92 posts
fr.eelance.eu
10th Ranked


Re: "Sharing" one html in different skins 

Hi !

I would install the skin using the Host account in order to make it accessible for all Portals, then use the portal.css file to overrides the rules which need to be overruled (the background-image property in case), and place the images in /Portals/(ID)/Skins/SkinName/Medias/ or something similar.

The Timo's solution works too.

seb


Contactez moi !
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Make it Hot! ( ...  "Sharing" one html in different skins
 


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.

 


Overlook Technology
Website Development, DotNetNuke Consulting, Module Development, Portal Management
OverlookTechnology.com
DeutschNetNuke = DotNetNuke in German
DeutschNetNuke provides all DotNetNuke related services in German (and English).
www.DeutschNetNuke.de
The Standard in Senior Housing Information
SNAPforSeniors provides consumers with free online resources to assist them with their search for senior housing
www.snapforseniors.com

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