Printable Version Printable Version Recommend Recommend Email to a friend Email to a friend

Advanced Razor Development - Building a custom User Profile using Razor in DNN - Part 2/2

9 min : 43 sec

Learn how to do advanced module development using the Module Creator and razor templates. We will cover database access, using razor helpers, view navigation, including custom assembled code, and more. This is part 1 of 2.

Instructions:

1. Login as Host
2. Create a page
3. On the admin ribbon, select Modules > Create Module
4. Drop an instance of the Module Creator module onto the page
5. Enter the following settings:
- Owner Name: DotNetNuclear
- Module Name: User Profile Demo
- Language: C#
- Template: Module - Razor
- Control Name: View
6. You should now have a working and registered module in the /DesktopModules/DotNetNuclear/UserProfileDemo folder. Replace the _View.cshtml and other files in this folder with the ones in the UserProfileDemo.zip file.
7. Unzip the DnnSocialHelpers.zip into the /DesktopModules/DotNetNuclear folder. Your project should be created in the path /DesktopModules/DotNetNuclear/DnnSocialHelpers. Open the solution and build. It should build the assembly DotNetNuclear.SocialHelpers.dll directly into the /bin folder of your DNN instance.


Do you have a question? Ask on our Forum!

Try FREE
30 days money back guaranteed