Register   Login
     
  Latest Posts  
RE: how to add rating and comment in simple gallery
by mndmmnd on 10/07/2008 4:53 AM
RE: ENH: NA becomes the Article Manager and LA is the display module
by robax on 10/07/2008 3:48 AM
RE: RSS issue - running Win 2008 / SQL 2008
by robax on 10/07/2008 3:03 AM
RE: Editing Approved Articles
by glenwin on 10/07/2008 2:54 AM
RE: ENH - Multi FileUpload
by wknox on 10/07/2008 2:23 AM
RE: Archive Display Option
by smcculloch on 10/07/2008 1:50 AM
RE: Suggestion: Individual articles only viewable by select roles.
by smcculloch on 10/07/2008 1:49 AM
RE: Bad link when Display is set to Album
by smcculloch on 10/07/2008 1:47 AM
RE: Filter news list on user Role
by smcculloch on 10/07/2008 1:45 AM
RE: RSS issue - running Win 2008 / SQL 2008
by smcculloch on 10/07/2008 1:44 AM
  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:11937


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


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


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


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


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