Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Export Custom Modules View modes: 
User avatar
Member
Member
yasser - 3/17/2011 9:44:53 AM
   
Export Custom Modules
Hi,

I've added a custom module to the tools UI.
I would like to export this module is that possible?
I've tried the export feature but couldn't find my custom module.

Any help would be appreciated.

User avatar
Kentico Support
Kentico Support
kentico_radekm - 3/17/2011 11:21:15 AM
   
RE:Export Custom Modules
Hello.

Exporting custom modules:

The following folders will be included in the export package when the custom module is selected for export. It is therefore recommended that your modules data is stored within these folders:

• ~/App_Code/CMSModules/<module_name>
• ~/App_Data/CMSModules/<module_name>
• ~/CMSModules/<module_name>

The <module_name> value needs to be the same as the code name of the module in the administration interface, so for example for a module named CMS.Test, the folders would be:

• ~/App_Code/CMSModules/CMS_Test
• ~/App_Data/CMSModules/CMS_Test
• ~/CMSModules/CMS_Test

If you are asking where you can choose your custom module to be exported, it is Site Manager -> Sites -> Export objects wizard. Here you can choose "Do not preselect any objects" in step 1, and choose required module in step 2, when you expand Development -> Modules node.

Best Regards,
Radek Macalik

User avatar
Member
Member
yasser - 3/17/2011 11:34:10 AM
   
RE:Export Custom Modules
Hi Thanks for this.

Do I need to have the aspx in the CMSModules and the aspx.cs in the app_code/cmsmodules?
I don't have anything in the app_code or the app_data.
Also in the CMSModules/CMS_Test i have an images folder should this go in the app_data?

Thanks

User avatar
Kentico Support
Kentico Support
kentico_radekm - 3/17/2011 12:14:48 PM
   
RE:Export Custom Modules
Hello.

There is some folder structure which must be kept so export contains all required files. You can find export folder structure hehe, and you should also keep what I wrote in my previous post, so all required files are included in export package.

Best Regards,
Radek Macalik

User avatar
Member
Member
yasser - 3/18/2011 7:26:45 AM
   
RE:Export Custom Modules
Thank you.
I dont have any data or app code
So in my CMSModules i have
CMSModules/PVControls/xxx.aspx, xxx.asp.cs
CMSModules/PVControls/images/...

I tried exporting and although they exported when I imported none of the code files were there so it did not work.

Thanks,

User avatar
Kentico Support
Kentico Support
kentico_radekm - 3/24/2011 2:55:41 PM
   
RE:Export Custom Modules
Hello.

Is the name of the folder under CMSModules folder the same, as code name of your custom module?
For example, in our Developer´s guide, in chapter related to development of a custom module, we are using MyModule folder name, while code name is cms.mymodule. In this case it will not be exported / imported. Could you please check it?

Also - did you choose "Import files (recommended)" option in Step 3 of Import process? Thank you.

Best Regards,
Radek Macalik