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

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...containers - programmatically access module contentcontainers - programmatically access module content
Previous
 
Next
New Post
6/14/2007 7:26 PM
 

Hello,

  I'm trying to learn how to put the html module's content into a string (so I can check if it is empty or not) in my container's common.ascx file.  Any help would be appreciated!

Thanks

-Nick

 

 
New Post
6/17/2007 9:25 AM
 

IMO it is not the purpose of skinning, to check module content.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
6/18/2007 1:45 PM
 

I agree with you that skinning shouldn't need access to the content.  However, it seems to me it is useful to for the skin to have dynamic behaviors based on the nature of the content.

on a website I'm designing, there are different kinds of "articles" that might be posted .  The article types include:

  • A picture only (meaning that I want the picture to be at the top of the page without any (unplanned) white space above it).
  • a title only
  • title and paragraphs
  • paragraph only

It is hard to explain without showing you a picture (which I'm unable to do), but what I wanted to to do is prevent dotnetnuke from outputting ANYTHING in the case where there is no content (paragraph or picture) provided.  DotNetNuke was breaking my intended layout by inserting empty DIVs when it had no content to fill those divs (I was expecting to be able to output just the title, but the extra divs were adding "white space" below my title.

I am working around the problem, but it seems to me that even if I don't have access to the content, I should have access to a flag that lets me know there is content.  Another example use (an opposite use) of this flag would be to place some text like "[add article content here]" only in admin mode and only in the case where the user has not yet added content (I'm aware of the default text when you add a new html module to a page... but that text could be erased by the user).

Anyway, thank you for the response.  I guess the main suggestion I have for the future is that modules should be able to expose variables to the container skins so that skins can act on those variables. Examples include:

  • a "module count" (per pane) so that I can alternatively style odd and even numbered modules
  • "module type" so that I might style modules differently in my container code.  As things are now, I would have to depend on the user to remember to change the container skin on a per-instance basis.
  • module settings (such as http path to the XML source data for the XML module)

...and maybe better documentation for the existing .ascx container and skin possibilities would be useful.  One has to dig through forums now to learn how to access the module id or the module title or to learn that it is possible to detect "admin mode".

Thank you for bothering to reply to mail post.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...containers - programmatically access module contentcontainers - programmatically access module content


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