DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Forum: Building DNN Modules, Providers etc.

 26 Subscribed to this forum
Page 1 of 1812345 > >>

Topics

Replies
Rating
Status
Views
Subscribers
Last Post

Advice on avoiding ThreadAbortException when unzipping files into DNN custom module folder via scheduled task      

Started By  Laurence
I have written a simple custom module that uses static content files (Markdown, HTML, images etc) to render content for the user within the module. The static content files are delivered in to a 'drop' folder as a ZIP file, which is then unzipped into a 'source' folder (which is first emptied of old files), and some processing is performed on them before they are shown in the module. The unzipping and processing is performed by a DNN scheduled task which monitors the drop folder. My issue ...
51 1

DependencyProvider in subclass of ModuleSearchBase      

Started By  Derek
Hi everyone, Globals.NavigateURL has been deprecated, but it's currently not possible to resolve a dependency on NavigationManager in a subclass of ModuleSearchBase. DependencyProvider does not exist in the context. Am I missing something or this is a feature that still needs to be implemented Kinds regards, Derek
12 2452 3
by Derek

DNN 10 and Documents module      

Started By  John Wolf
Hey, everyone. Just wondering what folks on v10 who used the Documents module have done to replace it. We have many instances of it and are seeking a solution as we prepare to upgrade.  We tried Evotiva User Files, but our users aren't happy with it. We considered a custom module in XMod Pro, but its permissions don't meet our needs.  Appreciate any suggestions.  John
7 279 2

Reflection.CreateObject is obsolete      

Started By  Julien Hortonéda
Hello, I am re-developing a custom module with its own data provider in a DNN 9.13 dev instance. In the DataContext class, I have to create the provider by using Reflection.CreateObject. I have a message telling me that this is obsolete and that I should use an overload with IServiceProvider. I could not find samples or documentation for this. Can someone help me to identify a documentation or example that I could learn from Thanks a lot.
5 116 2

Updating user's PreferredTimeZone in code      

Started By  johnhenley
I am trying to write unit tests for time zone conversion using mock UserInfo objects, but I'm unable to set a specific time zone for a user's profile.  Here is what I have; it always returns UTC. Any suggestions
1 98 1

Dependency Injection in Theme Objects?      

Started By  Will Strohl
Hello Everyone:  Are we not supporting dependency injection in theme objects yet  I'm having issues trying every way I've done prior to include the INavigationManager in a theme object, but I can't find a way to both get it to compile and also not throw exceptions at runtime.   In short, after adding the Nuget references to DotNetNuke,Core, .Abstractions, and .DependencyInjection, the following code snippets that normally would work do not.   using DotNetNuke.Abstractions; ...
9 690 3

Modify React application -> AdminLogs.Web      

Started By  Seek78
Hi everyone, out of necessity (but also for educational purposes), I need to modify one of the React applications bundled with DNN. Specifically, the 'AdminLogs.Web' application. The goal is to add a combo box to filter logs by user. Where can I start without messing around Thanks everyone, S.
3 251 1
by Seek78

Dependency Injection (DI) in DNN 10 in custom modules: the right way      

Started By  Seek78
Hi, I'm upgrading to DNN 10 and would like to know the correct way to approach DI in DNN. In this context, I have a custom module that exposes a Web Service. I currently have some legacy code from DNN 7, and I'd like to port it to DNN 10 using the official patterns: [CODE]             new PortalAliasController().DeletePortalAlias(httpAliasId);             List allRolesInTargetPortal = new RoleController().GetRoles().OfType().ToList(); [CODE] Is it correct to inject the necessary serv...
10 453 2
by Seek78

Copy custom module from a page to another      

Started By  Seek78
Hi, I'm trying to copy my custom module (I have the C sources) from one page to another via the 'Modules -> Add existing module' menu, but the magic doesn't work (using or not the 'Create a copy' option, the result is the same), it creates a sort of empty container without the configuration that it should carry. I'm using DNN 7.4 (yes, yes, it's not the latest :-) and the porting to DNN 9 is coming soon). What's missing in my module Thanks S.
9 717 2
by Seek78

Hook method for deleting modules      

Started By  Seek78
Hello everyone, in a cutom module, is there a way to intercept the deletion event of a module from the page I need it, in case of deletion (also in sharing mode), to know when I have to clean up the related data. S.
3 301 1
by Seek78
Page 1 of 1812345 > >>


RSS Feed Available

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. 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.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved