Register   Login
     
  Latest Posts  
Select Image Button does not work.
by rtnovak on 1/08/2009 6:37 AM
Lightbox implementation
by max2o on 1/08/2009 6:16 AM
RE: Toolbar links at the top of the articles module
by smcculloch on 1/08/2009 5:52 AM
Toolbar links at the top of the articles module
by wassis on 1/08/2009 5:42 AM
RE: PA Features & Enhancements
by smcculloch on 1/08/2009 4:33 AM
RE: PA Features & Enhancements
by georgelew on 1/08/2009 4:28 AM
RE: Search Wildcard Problem!
by smcculloch on 1/08/2009 4:24 AM
RE: Search Wildcard Problem!
by georgelew on 1/08/2009 4:19 AM
RE: Does anyone have XHTML Compliant PA Template
by georgelew on 1/08/2009 4:11 AM
RE: Help! Cannot use "&" in CustomField.
by georgelew on 1/08/2009 4:01 AM
  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 Active Member
Nuke Active Member
Posts:27

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.


http://www.nguyenminhduc.net: My personal site
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12800


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 Active Member
Nuke Active Member
Posts:27

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.

http://www.nguyenminhduc.net: My personal site
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12800


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 Active Member
Nuke Active Member
Posts:27

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?

http://www.nguyenminhduc.net: My personal site
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12800


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 Active Member
Nuke Active Member
Posts:27

7/24/2008 2:25 AM  
Can someone write a tutorial on how to customize an existing module, please?

http://www.nguyenminhduc.net: My personal site
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12800


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 Active Member
Nuke Active Member
Posts:27

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.

http://www.nguyenminhduc.net: My personal site
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12800


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 Active Member
Nuke Active Member
Posts:27

7/24/2008 7:03 AM  
Thank. I will try to find a way around.

http://www.nguyenminhduc.net: My personal site
You are not authorized to post a reply.
Forums > General > DotNetNuke Questions > How to customize an existing module?



ActiveForums 3.7