Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0How to replace "Your Company " with my Company nameHow to replace "Your Company " with my Company name
Previous
 
Next
New Post
1/14/2009 10:56 AM
 

Hello, I have the same problem, did you solve it anyway?

 
New Post
2/13/2009 5:48 PM
 

Duc Minh Nguyen wrote
 

I want to change YourCompany to NMDUC. Here are what I did:

-In My Documents\Visual Studio 2008\Templates\ItemTemplates\Visual Web Developer\CSharp, I unzipped Module_CS.zip.

-In Module_CS, I went to ModuleName folder. Open all file and change YourCompany with NMDUC.

Then:

-In My Documents\Visual Studio 2008\Templates\ProjectTemplates\Visual C#, I unzipped Web. There is zipped Module_Compiled_CS. I unzipped it.

-You can see DotNetNuke Module.vstemplate. Open it with Notepad.

-Find this

   
       
   
Change YourCompany with whatever you want.

Then zip everything.

 

 

I would like to revise/correct (or is it update?) the procedure for changing "YourCompany", which you described.  This is for using DNN Version 04.09.01. This example given in VB, but easy enough to infer what to do for C#.  To do this the easiest, you will need a zip program that will let you edit and update files within it.

First of all, go to the "My Documents\Visual Studio 2008\Templates\ItemTemplates\Visual Web Developer\VisualBasic" directory and open the "Module_VB.zip" file.  Using Notepad, search every file (and I mean *every* file) for instances of "YourCompany" and replace with the company name you want.

The files I had to change in Module_VB.zip were:

  • ViewModule.ascx
  • Uninstall.SqlDataProvider
  • Module.dnn
  • App_Code\ModuleName\SqlDataProvider.vb
  • App_Code\ModuleName\Info.vb
  • App_Code\ModuleName\DataProvider.vb
  • App_Code\ModuleName\Controller.vb
  • DesktopModules\ModuleName\01.00.00.SqlDataProvider
  • DesktopModules\ModuleName\EditModule.ascx
  • DesktopModules\ModuleName\EditModule.ascx.vb
  • DesktopModules\ModuleName\Settings.ascx
  • DesktopModules\ModuleName\Settings.ascx.vb
  • DesktopModules\ModuleName\ViewModule.ascx.vb

Then go to "My Documents\Visual Studio 2008\Templates\ProjectTemplates\Visual Basic\Web" directory and open the "Module_Compiled_VB.zip" file.  Search every file for instances of "YourCompany" there as well and replace with the company name you want.

The files I had to change in Module_Compiled_VB.zip were:

  • Components\DataProvider.vb
  • Components\ModuleNameController.vb
  • Components\ModuleNameInfo.vb
  • Components\SqlDataProvider.vb

Finally, go to the "My Documents\Visual Studio 2008\Templates\ProjectTemplates\Visual Web Developer\VisualBasic" directory and open the "DotNetNuke.zip" file. 

DO NOT change "YourCompany" in the "DotNetNuke.vstemplate" file.  If you do, you will also have to rename the "YourCompany.SkinWidgets.SampleWidget" file in the archive's "Resources/SkinWidgets\scripts" directory but, once that's changed it will cause errors when Visual Studio attempts to find the template.

What you can do in the "DotNetNuke.zip" file, however, is change the connection string definitions in the "web.config" and "release.config" files to a connection string matching what you commonly use.  If you don't want to that, then there's no need to fool with the "DotNetNuke.zip" file at all.

With these changes, if you create a new DNN Module you will encounter one, small problem (which I haven't figured out yet).  After doing the "Add Item" to create the module and renaming the 2 "Module" directories, when you build the project you will get an error in the "ViewXXX.ascx.vb" code within DesktopModules.  Very simple to fix: Load the "Viewxxx.ascx" file and change the "YourCompany" reference in it to your company's name.

Hope this helps.


 

 
New Post
2/13/2009 6:05 PM
 

carlillos wrote
 

Hello, I have the same problem, did you solve it anyway?

If you check the reply I just gave, that might solve your problem, Carlillos.  The procedure I described was for a template created for Visual Studio 2008.  Maybe different if you're using VS 2005 or some other version.

 

 
New Post
2/17/2009 12:59 PM
 
 
carlillos wrote

Hello, I have the same problem, did you solve it anyway?

Here is an ammendment to my previous post, with some additions/corrections:
 
This is for using DNN Version 04.09.01. This example given in VB, but easy enough to infer what to do for C#.  To do this the easiest, you will need a zip program that will let you edit and update files within it.
 
First of all, go to the "My Documents\Visual Studio 2008\Templates\ItemTemplates\Visual Web Developer\VisualBasic" directory and open the "Module_VB.zip" file.  Using Notepad, search every file (and I mean *every* file) for instances of "YourCompany" and replace with the company name you want.
 
Important Note: Do not edit these files using Visual Studio’s editor. It malfunctions on Find/Replace functions with the characters involved in these files. Use Notepad only on everything.
 
The files I had to change in Module_VB.zip were:
App_Code\ModuleName\SqlDataProvider.vb
App_Code\ModuleName\Info.vb
App_Code\ModuleName\DataProvider.vb
App_Code\ModuleName\Controller.vb
 
DesktopModules\ModuleName\Uninstall.SqlDataProvider
DesktopModules\ModuleName\Module.dnn
DesktopModules\ModuleName\01.00.00.SqlDataProvider

DesktopModules\ModuleName\EditModule.ascx
DesktopModules\ModuleName\EditModule.ascx.vb

DesktopModules\ModuleName\Settings.ascx
DesktopModules\ModuleName\Settings.ascx.vb
 
And, if the template was installed on a Windows XP computer, Module_VB.zip also contains the following files in the root of the zip archive which need to be edited as well:
 
ViewModule.ascx
Uninstall.SqlDataProvider
Module.dnn
DotNetNuke Module.vstemplate

DesktopModules\ModuleName\ViewModule.ascx.
DesktopModules\ModuleName\ViewModule.ascx.vb
Then go to "My Documents\Visual Studio 2008\Templates\ProjectTemplates\Visual Basic\Web" directory and open the "Module_Compiled_VB.zip" file.  Search every file for instances of "YourCompany" there as well and replace with the company name you want.
The files I had to change in Module_Compiled_VB.zip were:
ViewModuleName.ascx.vb
ViewModuleName.ascx.designer.vb
ViewModuleName.ascx

EditModuleName.ascx.vb
EditModuleName.ascx.designer.vb
EditModuleName.ascx

Settings.ascx.vb
Settings.ascx.designer.vb
Settings.ascx

Uninstall.SqlDataProvider
ModuleName.SqlDataProvider

01.00.00.SqlDataProvider

ModuleName.dnn
DotNetNuke Module.vstemplate

Components\DataProvider.vb
Components\ModuleNameController.vb
Components\ModuleNameInfo.vb
Components\SqlDataProvider.vb
Finally, go to the "My Documents\Visual Studio 2008\Templates\ProjectTemplates\Visual Web Developer\VisualBasic" directory and open the "DotNetNuke.zip" file. 
 
DO NOT change "YourCompany" in the "DotNetNuke.vstemplate" file.  If you do, you will also have to rename the "YourCompany.SkinWidgets.SampleWidget" file in the archive's "Resources/SkinWidgets\scripts" directory but, once that's changed it will cause errors when Visual Studio attempts to find the template.
 
What you can do in the "DotNetNuke.zip" file, however, is change the connection string definitions in the "web.config" and "release.config" files to a connection string matching what you commonly use.  If you don't want to that, then there's no need to fool with the "DotNetNuke.zip" file at all.
 
Hope this helps.
 
 
New Post
8/2/2010 12:01 PM
 
Hi Guys...i think is only necessary change this file: DotNetNuke.vstemplate and in the line "$your company$" value="yourCompany", change the value to the new name of your company, the template will replace all the files with your new name. I only make this and work fine.
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0How to replace "Your Company " with my Company nameHow to replace "Your Company " with my Company name


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

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

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. 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.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out