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 ExtensionsModulesModulesAdding a new Module Definition to installed moduleAdding a new Module Definition to installed module
Previous
 
Next
New Post
7/15/2010 10:51 PM
 
hi

I have developed a DNN module and everything is fine. I now need to add a new module definition to the module that is installed and running on the portal.

While i know how to add module definition to the module, how do i make it appear on a tab on the portal. I do understand that this may not be straightforward and appreciate any pointers on the same.

cheers
Abhishek
 
New Post
7/16/2010 3:35 AM
 
Hi Abhishek,

After you have added your new module definition, you need to package and install the module on your DNN installation in the normal way. When you add the module to a page in your portal, each of the definitions in your module will be inserted on the page. You can then move them to different pages, as needed.

However, I think I may have only partially answered your question. If you mean what happens to the controls from the previous version of the module already on the page, that's a very good question. Unless anyone else can cast more light on this, I suggest you try it out on a test installation, and see what happens. Have a look at the ModuleDefinition table before and after installing the new version, and check to see if the definitions in the new version update existing ones, or are newly created. Do old definitions get deleted, or do they remain in the table? Also, have a look at the pages where you had your module installed, and see the result.

Your strategy for updating will depend to some extent on whether you need to retain module data during the upgrade. If you are able to simply delete old module instances and replace them with the new version, the task is simple. On the other hand, if you need to retain the data, and the data has a relationship to the ModuleID, I think you'll need to find a way of migrating it. In the worst case, if your module supports IPortable (ie. Import / Export), you could use this as way of doing the migration.


Paul Taylor
Dotcom Software Solutions Ltd
DotNetNuke, ASP.NET and SQL Server Development
 
New Post
7/16/2010 8:12 AM
 
Here is what I have discovered:
  1. Create your ASCX definition and add to the Module Definition using the Host menu
  2. Get ModuleDefID of this newly added ASCX by querying ModuleControls using the Title of the Control you have added. (e.g. 158)
  3. Add a new row to the Modules table with relevant Portal in Mind. From this newly added row, get the ModuleID (e.g. 517)
  4. Add a new row to TabModules table with ModuleID from the earlier step alongwith other necessary columns.

Refresh the page on the portal to see the new definition on the page. If you are using caching you will need to clear the cache to see the changes.

Anyone has a better idea?

 

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesAdding a new Module Definition to installed moduleAdding a new Module Definition to installed 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