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...Getting StartedGetting StartedBest practices for dynamic pageBest practices for dynamic page
Previous
 
Next
New Post
10/6/2011 6:34 AM
 
I'm starting a new project (my first) in DNN 6. The requirements is to have the same content displayed differently based on some criteria.

The main table with content looks something like this:

Campaigns

  • Id
  • Title
  • Content
  • DisplayType
I will also have some custom modules. I will use different modules for different display types (the modules will also be used on other pages).

For example, an active campaign will have a photo galery module and a signature module; an inactive campaign will have a searcher and a "donate to the page owners" button. The signature, searcher and donate module will also be used on other pages.

What are some recommendations for such scenario?

Do I just create a plain Asp.NET aspx file? Use query string to get the campaign from database and then display the correct view (ascx)? How do I add modules to this? Can these modules be user defined? User defined per view?

Do I create a module for campaign display, create a page in DNN and add module to it? How can I conditionally display other modules on the page?

Any other approach?

I hope I didn't spout to much nonsense; I'm into DNN just a couple of days.

Luc
 
New Post
3/20/2012 9:11 PM
 
AFAIK, Dotnetnuke can display custom user controls, which are loaded dynamically based on keys pairs sent to the API. 


Although it sounds like your approach should work, there are probably a couple of ways to do this, and you don't want too many page refreshes also, so I would recommend downloading the survey module from the projects downloads, and look at the source code & the extension definition file- that would probably be the best approach.


Hope this helps a bit, there are also module development videos, forums, templates for visual studio and excellent blog resources to help with this.

 
New Post
3/21/2012 4:33 AM
 

Thanks for your reply.

I did manage to do what I needed the quick & dirty way (well, not so quick and a lot more dirty). Two page templates have two pages urls hard coded and they redirect to each others pages based on the state of the record in database. This way each template has its own set of modules that can be customized for active/inactive records.

Later I got the idea to use different containers for the content and hide the one I don't use (this way both views could be managed from same page and there is nothing hard coded in the template), but the project was already spread thinner than my paycheck, so quick & dirty stood.

I'll make sure I check the survey module the next time I'm in DNN business for some more ideas.

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedBest practices for dynamic pageBest practices for dynamic page


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