Products

Solutions

Resources

Partners

Community

About

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 existing custom module to pageAdding existing custom module to page
Previous
 
Next
New Post
5/17/2018 1:16 PM
 
Hi. I've written a custom MVC module that works fine. The problem is that I'm using external data to populate content. Data is stored with module id as reference. Is there a way to have a function being called (or any other way) when the user add existing module (as copy) to a page? Otherwise, my module is added properly but can't display any content as the private data is not copied with the new module id as reference. Thanks in advance for the help
 
New Post
6/19/2018 8:11 AM
 
Sorry to up that question. Nobody can help with that problem? Is there no way to have a function of my module get called when module is copied on another page?
 
New Post
6/19/2018 1:27 PM
 
Jaco,

if you want to allow putting a new module instance on the page then the ModuleID is obviously not the correct entity. I don't know your exact usecase, but you should use something else then.Eg if all instances of the module on the same portal should use this ID then I would use the PortalID.

Happy DNNing!
Michael

Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
6/19/2018 1:55 PM
 
Thinking about the bigger picture, how about if you have two instances of your module and you DON'T want to share data? For example a news module. If I have multiple instances on differnent pages I might want a single headlines module on (say) the home page to share data with all of them. I may not.

A scheme I have seen used is to allow the module configuration to find other instances of your module type (Look in the DNN tables/use the DNN API.) and ask the installing user. "Which of these would you like to share data with?"

That puts control easily and flexibly in the hands of the user.

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
6/20/2018 10:24 PM
 
why do you need to "copy content" when a module is added to a page?
content might be retrieved from an external source and should remain there -
but presented according to specified criteria.
If you module implements DNN search interface, the content should be properly
included into DNN search index.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesAdding existing custom module to pageAdding existing custom module to 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