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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryFix: Pop-up viewer and slideshow windows do not use portal skinFix: Pop-up viewer and slideshow windows do not use portal skin
Previous
 
Next
New Post
7/17/2005 6:08 AM
 

This is desirable so that you can use a plain slideshow skin and allow the basic colour schemes and fonts to be defined in portal.css or the current skin css for easier per-portal style integration.
This fix applies to viewer.aspx and slideshow.aspx and can be recreated by copying code from the core dotnetnuke default.aspx.vb

1. In the .aspx itself, add
<asp:placeholder id="CSS" runat="server"></asp:placeholder>
(before the link instruction for the gallery css

2. In the .vb add imports to the header as:
Imports System.Web.UI.HtmlControls
Imports DotNetNuke.Common
Imports DotNetNuke.Common.Utilities

3. change the page inheritance from
        Inherits System.Web.UI.Page
to:
        Inherits DotNetNuke.Framework.PageBase


3. copy the ManageStyleSheets function from dnn default.aspx.vb into the .vb

4. in Page_Init, add:
            ' add CSS links
            ManageStyleSheets(False)
            ManageStyleSheets(True)

[I know, sounds like a bit of a hack copying the function and so on - maybe get the core team to move the core stylesheet functions into PageBase?]

Jonathan

 

 
New Post
9/20/2006 2:58 AM
 
I've posted in DNN issues   the StyleSheetsManage common class, that can be used from Default.aspx,Components\Skins\Skin.vb and third-party modules if required

   


Michael Freidgeim http://geekswithblogs.net/mnf
 
New Post
3/1/2007 11:19 AM
 
Hi, I copied the ManageStyleSheets function to another popup window code, but I get: 'Name 'Addstylesheet' not declared'

What should I do now?
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryFix: Pop-up viewer and slideshow windows do not use portal skinFix: Pop-up viewer and slideshow windows do not use portal skin


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