Register   Login
     
  Latest Posts  
RE: Redesigning Elements of News Articles
by pspeth on 8/29/2008 5:51 PM
RE: Redesigning Elements of News Articles
by smcculloch on 8/29/2008 3:42 PM
RE: Sorry you have to be logged in
by smcculloch on 8/29/2008 3:40 PM
Sorry you have to be logged in
by albertramsbottom on 8/29/2008 3:37 PM
RE: Maximum photo upload
by marshal on 8/29/2008 2:08 PM
RE: Maximum photo upload
by smcculloch on 8/29/2008 2:04 PM
RE: Maximum photo upload
by marshal on 8/29/2008 1:53 PM
RE: Maximum photo upload
by smcculloch on 8/29/2008 1:42 PM
RE: Categories List
by smcculloch on 8/29/2008 1:40 PM
Maximum photo upload
by marshal on 8/29/2008 1:39 PM
  Forums  
Subject: How to customize an existing module?
Prev Next
You are not authorized to post a reply.

Author Messages
nmduc073User is Offline
Registered Users
Nuke Super Newbie
Nuke Super Newbie
Posts:11

7/23/2008 8:37 PM  

I want to create a new module for my personal site. When I researched, I found that I could build from Repository module. However, I want to put the source code of Repository module to my module. Is there any way to do that? Please help me.

Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:11396


7/24/2008 12:18 AM  
You would download the repository source code and integrate it in manually.

Scott McCulloch
Site Administrator
nmduc073User is Offline
Registered Users
Nuke Super Newbie
Nuke Super Newbie
Posts:11

7/24/2008 12:27 AM  
I did it. I put them in MyRepVB module. I also changed the namespace of each file to MyRepVB. Then I created module definition. However, there are error when I run the module. THe error content is The type initializer for 'MyRepVB.DataProvider' threw an exception.
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:11396


7/24/2008 12:41 AM  
You probably really need to know what you are doing here, typically it's because the typeName of the data provider is incorrect.

Scott McCulloch
Site Administrator
nmduc073User is Offline
Registered Users
Nuke Super Newbie
Nuke Super Newbie
Posts:11

7/24/2008 12:49 AM  
You are correct. I tried to change DotNetNuke.Modules.Repository in objProvider = CType(Framework.Reflection.CreateObject("data", "DotNetNuke.Modules.Repository", "DotNetNuke.Modules.Repository"), DataProvider) to MyRepVB. And it threw that exception. What should I do?
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:11396


7/24/2008 2:08 AM  
Look at the object browser ctrl+alt+j to see if the assembly is called that type.

Scott McCulloch
Site Administrator
nmduc073User is Offline
Registered Users
Nuke Super Newbie
Nuke Super Newbie
Posts:11

7/24/2008 2:25 AM  
Can someone write a tutorial on how to customize an existing module, please?
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:11396


7/24/2008 5:22 AM  
It is more a visual studio setup issue then anything else. Why not just loadup the repository project and customise from there?

Scott McCulloch
Site Administrator
nmduc073User is Offline
Registered Users
Nuke Super Newbie
Nuke Super Newbie
Posts:11

7/24/2008 5:56 AM  
If I load up repository project, it means I have to use Repository folder. I make changes in that project. When I recompile, I have a custom Repository. However, the name isn't changed. As a result, I can't use orginal and my custom Repository module at the same time.
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:11396


7/24/2008 6:04 AM  
Not if you rename the folder, module definitions, assembly name, etc.

You probably need to know your way around module development to work this out, there is not much I can do on a forum to help.

Scott McCulloch
Site Administrator
nmduc073User is Offline
Registered Users
Nuke Super Newbie
Nuke Super Newbie
Posts:11

7/24/2008 7:03 AM  
Thank. I will try to find a way around.
You are not authorized to post a reply.
Forums > General > DotNetNuke Questions > How to customize an existing module?



ActiveForums 3.7