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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesSetting a module propertySetting a module property
Previous
 
Next
New Post
4/28/2010 12:39 PM
 

I'm a little unclear on how modules instances interact with the portal so...

I have a Read Only module (it does not do db updates) which I want to show different things based on a property I set for its instance.  

Let's use a simple example of a module which draws a shape.   If I drop 4 instances of the module on the same page, I'd like to have a property called "ShapeType" and have it display a dropdown during page creation listing Circle, Triangle, Square, etc..  When the page is viewed, each instance would display it's correct shape based on this property.  I don't want to store this value in a database, just associate it with that instance of the module on that page so it displays the same every time that page is viewed. This is only an example.

My question is, how/where to I expose/create this property within the module (I assume in the presentation class ViewMyProduct : PortalModuleBase, IActionable) to make it available for setting during page construction and where should I check it to make sure it displays correctly when the page is viewed  (ie. Page_Load, Paint, etc.)?

Thanks.

 
New Post
4/28/2010 3:18 PM
 

Please ignore the previous post.  After doing a little more research, I realized what I wanted to do could be easily done using the module's settings mechanism.

Thanks

 
New Post
4/28/2010 3:48 PM
 
you would to store your configuration in modulesettings (or tabmodulesettings). I suggest checking out source of Text/HTML 4.9.x, which uses a single setting ("replace tokens") and demonstrates, how to edit settings and read it.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesSetting a module propertySetting a module property


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