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  |  

Maximum ASP
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Make it Hot! ( ...  "Sharing" one html in different skins
Previous Previous
 
Next Next
New Post 4/3/2008 7: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 3:25 PM
User is offline Timo Breumelhof
1693 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 12: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 4:54 AM
User is offline Timo Breumelhof
1693 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 5: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.

 


DNN Photo Gallery
Complete Photo Gallery Management!
www.dnnPhotoGallery.com
R2i - Delivering Serious DNN Services & Solutions
Award Winning Design, Skin construction, Custom Modules and Consulting Services for the Enterprise organization. R2i is the DNN:Map module Project Lead and one of the largest DNN service providers with offices in New York City, Virginia and Baltimore.
www.bi4ce.com
"SalarO" Skinning Graphic Design Branding Services
SalarO develops packaged & custom skins for your DNN at prices you can afford. SalarO is also developing Module development, Hosting, Branding/Logo design as well as Content Transfer Services to complement the core skinning solutions.
www.salaro.com

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