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

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Does all database driven content has to be inside Module ?Does all database driven content has to be inside Module ?
Previous
 
Next
New Post
8/8/2011 9:08 PM
 
Hi,

This is what I am trying to develop

Objective:

(1) A Complete company website show casing all the products . Individual Product pages will contain images and information. This will be static data however product pricing and available quantity has to be dynamic. 

A: Do I create small price and quantity module for this ? Our designers will be creating the pages , do I just give him this module to place it on the page ? Should I create 5 different modules for 5 different products ?

B: Is there a way I can add code into the page itself to pull dynamic data instead of using module ?
 
New Post
8/9/2011 1:18 PM
 
anyone ?
 
New Post
8/9/2011 2:19 PM
 
Hello,
if you want dynamic content you'll have to execute code somewhere - typically this is via modules, but you could also use widgets (http://www.dotnetnuke.com/Resources/W...) or skin objects (http://www.dotnetnuke.com/Resources/W...). Alternatively you could create a services layer and call that e.g. have a REST'ful ASMX and call it from jquery.

However all of that would seem to be overkill - in you case I would just be creating a simple module that allowed admins to add a product. The add product page (e.g. edit.ascx) would allow them to specify the name and price in a textbox and would have a html editor so that they can type in and format any text and add any relevant images(s). This would allow you to drop 1 module instance on 1 page and see all the products e.g. the view.ascx might list all of them in a dropdown list. If you wanted to force 1 per page (e.g. if you wanted to add lots of other content in other panes relevant to the product), you could add a module setting to specify the productID and use multiple copies of the module.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Does all database driven content has to be inside Module ?Does all database driven content has to be inside Module ?


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