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 ForumsEventsEventsEvents module--theme.css not shown for unregistered visitorEvents module--theme.css not shown for unregistered visitor
Previous
 
Next
New Post
2/28/2009 3:26 PM
 

Changing cache to 0 fixes the problem.  It sounds like there may be other issues with 4.x versions of DNN, but for 5.0, it looks like the CSS file isn't being included on the second (and subsequent) views when caching is on.

I haven't tried this, but I if memory serves, DNN has a facility for including a module.css.  This way the DNN module cache can emit the HTML needed for the module, but it doesn't add any included files (Javascript or CSS) that the module adds.  The Events module isn't using a module.css file (it adds a .css file based on the Events Theme) so DNN doesn't know to include it.

Thanks for looking at this.  The page with two Events modules on it loads a little slower than I would like, and events are being added rarely, so this is a good candidate for caching (when it works).

Thanks for looking into this,

Tim


Add a time zone display to your website!
MyDNN TimeZones
 
New Post
2/28/2009 3:28 PM
 

I'll add that the 'unregistered visitor' effect I mention in the thread subject is explained by this as well.  When logged in, DNN doesn't cache modules (at least not in Edit mode with my current settings).  The unregistered user is seeing the cached moudle on the second page load while I'm logged in as Admin I only see uncached versions.

Tim


Add a time zone display to your website!
MyDNN TimeZones
 
New Post
2/28/2009 3:58 PM
 

Hi Tim,

Unfortunately I don't know how to resolve this problem. To use themes, the module must dynamically add the theme css at run time. I'm not sure how to make DNN cache that element. I'll continue to think over the problem, but not sure I can resolve.

Cheers
Roger


DNN MVP
Events - Get the latest version - Upgrade now!!
Feedback 6.4.2 - Now available - Give it a go!
Find us on Codeplex - DNN Events, DNN Feedback
Requirements/Bugs - Please submit them on Codeplex
 
New Post
2/28/2009 5:10 PM
 

Well I tried moving where the css is linked in (bsaically put it inside the module boundary rather than in the page header. Unfortunately DNN does not cache it there either.

Sorry
Roger


DNN MVP
Events - Get the latest version - Upgrade now!!
Feedback 6.4.2 - Now available - Give it a go!
Find us on Codeplex - DNN Events, DNN Feedback
Requirements/Bugs - Please submit them on Codeplex
 
New Post
2/28/2009 5:14 PM
 

Tim Sherrill wrote
 

I haven't tried this, but I if memory serves, DNN has a facility for including a module.css.  This way the DNN module cache can emit the HTML needed for the module, but it doesn't add any included files (Javascript or CSS) that the module adds.  The Events module isn't using a module.css file (it adds a .css file based on the Events Theme) so DNN doesn't know to include it.

Though the module doesn't use a module.css (because it allows theming), I notice that a reference to ~/DesktopModules/Events/Module.css is included. So you could put all your theme styling there. It would just need to be a copy of the theme css. I think that would work in the interim.

Cheers
Roger


DNN MVP
Events - Get the latest version - Upgrade now!!
Feedback 6.4.2 - Now available - Give it a go!
Find us on Codeplex - DNN Events, DNN Feedback
Requirements/Bugs - Please submit them on Codeplex
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsEvents module--theme.css not shown for unregistered visitorEvents module--theme.css not shown for unregistered visitor


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