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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Modifying existing modules for only one portal in a DNN installModifying existing modules for only one portal in a DNN install
Previous
 
Next
New Post
8/2/2006 5:13 PM
 

Each module has its own namespace, e.g. DotNetNuke.Modules.Feedback.

If you are going to add a modified version of the module to a portal, where the original Feedback is already installed, your module needs to have its own namespace, e.g. DotNetNuke.Modules.FeedbackMod, otherwise the same methods would be declared twice and you get errors after installing the second module.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
8/2/2006 9:43 PM
 

Thanks for the extra info though it still leaves me confused. I'm not an asp/vb/.net programmer and I'm pretty sure I don't need to be in order to make a duplicate DNN module. I'm convinced it's a simple answer but I've never been able to extract it out of this or the old forum. Perhaps it's too simple. In any case I will throw a bunch of questions out here again to see if I can pin it down once and for all.

In order to give the duplicate module it's own namespace.. what is involved...

Can this be done in the module definitions page or does this have to be done elsewhere?

Wikipedia tells me "a namespace is an abstract container providing context". From that I infer that a namespace must be constructed from existing names in the system. Does that mean I have to use part or all of "DotNetNuke.Modules.FeedbackMod" and where did that namespace come from in the first place?

I've looked through the Feeback module definition page in my DNN 4.3.3 but cannot find "DotNetNuke.Modules.Feedback" so I can't interpret from that how to replace it. The only module name I can see is "DNN_Feedback", greyed out.

I can see fields for Module name, Folder name, Friendly name, description Controller class. Is the namespace here?

When I re-add the original module's controls one at a time at the bottom of that page, do they also have to have a namespace constructed? How?

I can see a field to add a new definition... is that part of this maybe?

Any assistance is greaty appreciated and if someone who has successfully done this can provide the vital details, I'll volunteer to write it up as a tutorial for others to use in future.

Regards,
Rob

 
New Post
8/3/2006 2:48 AM
 

Each file in the module will have a reference to the namespace, like in each of *.vb files, at the top of the page you will find:

Namespace DotNetNuke.Modules.Feedback

In cuser control files (*.ascx) you will see:

Inherits="DotNetNuke.Modules.Feedback.View..."

where you will need to change just Feedback to something else like Feedback001 or pretty much anything; just make sure all the files have it changed.

I hope it helps,

Waldis

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Modifying existing modules for only one portal in a DNN installModifying existing modules for only one portal in a DNN install


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