Adding custom fields with nuget module package

Dmitry Bastron asked on November 14, 2016 09:16

Hi all!

I'm creating a custom module that would be installed as a nuget package. This module operates with custom CMS.User field (which I've added manually). Is it possible to include this custom user field creation in the installable nuget package somehow?

Correct Answer

Anton Grekhovodov answered on November 14, 2016 10:14


You can add after.sql script which will create this field if it doesn't exist Importing database objects from the module installation package

Or you can run custom C# code after successful module installation Initializing the module to run custom code where you can use Kentico API to create a custom field for specific class.

0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.