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 ExtensionsModulesModulesHow to programatically create DNN pages?How to programatically create DNN pages?
Previous
 
Next
New Post
11/29/2010 3:45 PM
 
I'm working on a DNN site which will be used as a store.  Each product will have its own DNN page containing various modules.  I'd like to create a module that will allow an administrator to create new products.

What is the best way to go about this?  How do you programatically create new DNN pages, populate them with modules, and configure the modules?

I'm sure this can be done, I just don't know how to get started.
 
New Post
11/29/2010 3:58 PM
 
do you really want to use a page for each product? we don't create a new page for every blog post or announcement either. I'd consider using a single "product catalog" page with a module displaying details for the selected entry (by query string or AJAX). Check out nb_store and other stores to get an idea.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/29/2010 4:35 PM
 
Well, that's what the requirement is.  I think the reason has to do with SEO.

Its a fairly complex site that will actually be used by multiple stores, each store will need its own DNN page and each product will need its own DNN page.  It is possible we that we'll use the "querystring approach" to the products, but only if we find a solution to the SEO issue (which I'm not familiar with, myself).  Still, that leaves the stores.  New stores won't be added often, but when they are, we'll need some way to programmatically create them.
 
New Post
11/30/2010 2:35 AM
 
ks78

1) As for me Sebastian is right it absolutelly has no sense to make new page for each product. You can have SEO friendly URL within one module, for example like this http://site.com/Store/1/Product/2/Default.aspx or you can use SKU instead of ID and link will be like http://site.com/Store/MainStore/Product/HP630/Default.aspx. In this case would be much more easy tomanage stores and products.

2) Why you do not use existing solutions? Catalook for example?

3) In case you still want to make new pages programatically, then you should look into DotNetNuke.Entities.Tabs.TabController and DotNetNuke.Entities.Tabs.TabInfo.

Good luck!

Sergey
 
New Post
11/30/2010 1:03 PM
 
A agree that its usually best to keep things as simple as possible, but the request for so many DNN pages comes from those above me, who I assume (or must pretend to assume) know what they're doing.

I have made some progress in my endeavor.  If anyone is interested, here's the link where you can follow my progress on StackOverflow, where I've posted the same question.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesHow to programatically create DNN pages?How to programatically create DNN pages?


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