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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Creating a dynamic pageCreating a dynamic page
Previous
 
Next
New Post
7/29/2008 1:32 PM
 

Hello All,

I am a DotNetNuke neewbie and have to modify a DNN site for a client and have a couple questions that I was hoping you guys could push me in the right direction with.

 

1. The page I'm working on holds News Articles in the database, I have created the data entity for the site as well as all the tables using the DNN DAL system but I need to create a page to view a news article based off of a primary key (ArticleID). What are my options? I was thinking of creating a new modual that could take the ArticleID a create the view or is it better to create new pages dynamically when a new article is entered? and if I do make the modual how can I create a page with the modual and link other places in the site to the moduals page passing the ArticleID

2. How can I add the rich textbox control to a newly created modual?

 
New Post
7/31/2008 2:22 PM
 

There are a lot of modules that can be used to diaply articles in dnn, maybe you should install one and teach your client.

If you must creat your own module, the text input is acutally easy and the dnn:texteditor control is already implemented with a editor.

I would download the starter kit then go thorugh some tutorials on using the stater kit.   Once you done that, I think you should

crreate the page dynamically using a module.

Just get an instance of the article based on the ArticleID and display on that module.

Steps

  1. Create a new module using the starter kit in your developmental dnn installation
  2. Change the object in App_Code/YourModule_Info.vb to reflect the fields in your article table.
  3. Modify the App_Code/DataProvider.vb and App_Code/SQLDataProvider to access your table.
  4. modify the App_Code/YourModule_Controller.vb to alllow access.
  5. Write the sps that you need for the YourModule_Controller.
  6. Create a browse/search page as the default view page- ViewYourModule.vb (using datagrid) in your DesktopModules/YourModule folder 
    use the default view page.
  7. Create viewArticle page - custom article diaplay page  in your DesktopModules/YourModule folder: Set Control Key to "Article"
    This needs to be a new custom web control you add in addition to the default pages.
  8. Build links to call the ViewArticle page from the default view page.
  9. Modify EditYourModule page in your DesktopModules/YourModule fodler to reflect your table.
  10. Create the module package
  11. instaall the package in your client's dnn site.

have fun.

  1.  
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Creating a dynamic pageCreating a 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