DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Issue In changing Module Default View

Sort:
You are not authorized to post a reply.





Growing Member





    Hi All,

    I have DNN 9.11.0 installed. Using “Christoc Hammond” DNN Project Template package I have created  module project in VS 2019 using MVC.

    It has some default views and controllers already integrated. Instead of using these default views and controllers, I created my own view and controller. Now I want this view and controller definition to be included in module package. For that I simply copied following settings in manifest file. Here Employee is the controller name under controller folder and Index is a view name under “Views > Employee” folder.

    <moduleControl>

                        <controlKey />

                        <controlSrc>Christoc.Modules.SecondPOCForModule.Controllers/Employee/Index.mvc</controlSrc>

                        <supportsPartialRendering>False</supportsPartialRendering>

                        <controlTitle />

                        <controlType>View</controlType>

                        <iconFile />

                        <helpUrl />

                        <viewOrder>0</viewOrder>

                      </moduleControl>   

     

    Actually what I am trying to do is to set “Index” view under “Views > Employee” folder to be the default module view, so that when the page where this module is integrated by default when that page is rendered  "Index" view of “Views > Employee” folder is shown.  When I tried to install the package in DNN it gave me an error

     

    Please let me know if I am missing some steps.

     

    Regards

    Tarunjit Singh






    Veteran Member





      I'm afraid you're going to need to do some more troubleshooting and then provide additional (more useful) details.





      Advanced Member





        It'll be very helpful to look at the error itself you're mentioning and also a close look at the admin logs to get more information about the error.

        Ing. Marco Alvarado Gómez MSc | Globalode
        Phone. +506 6049-1880 | WhatsApp. +506 6049-1880 | Email. [email protected]
        Address. Costa Rica (A Pura Vida place!).
        You are not authorized to post a reply.

        These Forums are dedicated to the discussion of DNN Platform.

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

        1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
        2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
        3. 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.
        4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
        5. No Flaming or Trolling.
        6. No Profanity, Racism, or Prejudice.
        7. Site Moderators have the final word on approving / removing a thread or post or comment.
        8. English language posting only, please.

        Would you like to help us?

        Awesome! Simply post in the forums using the link below and we'll get you started.

        Get Involved