dotnetnukedotnetnuke-moduledotnetnuke-6

Create Module Control during installation of module in DNN


I have finished developing my module for dotnetnuke, but I need to have my controls pages already added after the module is installed instead of adding all the control pages myself

enter image description here


Solution

  • Found my answer:

    In the solution explorer, there is a file that is called the name of your module with the file extension of dnn. Ex: MyModule.dnn

    Open that and look for the tag <moduleControl>. From there you can create your own control that will be added during the installation process.

    Here is my example:

    <moduleControl>
        <controlKey>GestionCategories</controlKey>
        <controlSrc>DesktopModules/DemandePosteEnLigne/GestionCategories.ascx</controlSrc>
        <supportsPartialRendering>False</supportsPartialRendering>
        <controlTitle>Gestion des Categories</controlTitle>
        <controlType>Edit</controlType>
        <iconFile />
        <helpUrl />
        <viewOrder>0</viewOrder>
        <supportsPopUps>True</supportsPopUps>
    </moduleControl>