Register   Login
     
  Latest Posts  
RE: File Expiration Date
by jerops on 12/02/2008 3:49 PM
RE: Display Name
by smcculloch on 12/02/2008 3:38 PM
RE: New Module - File Search
by smcculloch on 12/02/2008 3:37 PM
RE: Set default value
by smcculloch on 12/02/2008 3:36 PM
RE: File Expiration Date
by smcculloch on 12/02/2008 3:35 PM
RE: News Article css
by smcculloch on 12/02/2008 3:34 PM
RE: Integration with UserProfile StoryFeed
by smcculloch on 12/02/2008 3:32 PM
RE: Multi currency
by Astaroth on 12/02/2008 3:32 PM
RE: SUMMARY tag
by smcculloch on 12/02/2008 3:31 PM
RE: JQuery Error in IE6
by smcculloch on 12/02/2008 3:31 PM
  Forums  
Subject: How to customize an existing module?
Prev Next
You are not authorized to post a reply.

Author Messages
nmduc073User is Offline
Gold Membership
Nuke Super Newbie
Nuke Super Newbie
Posts:16

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:12560


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
Gold Membership
Nuke Super Newbie
Nuke Super Newbie
Posts:16

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:12560


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
Gold Membership
Nuke Super Newbie
Nuke Super Newbie
Posts:16

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:12560


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
Gold Membership
Nuke Super Newbie
Nuke Super Newbie
Posts:16

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:12560


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
Gold Membership
Nuke Super Newbie
Nuke Super Newbie
Posts:16

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:12560


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
Gold Membership
Nuke Super Newbie
Nuke Super Newbie
Posts:16

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