CodeSmith Community
Your Code. Your Way. Faster!

DNN 4 Master/Subtemplates

Latest post 02-21-2008 11:28 AM by aleemzky. 2 replies.
  • 02-03-2007 4:20 PM

    • LeeCarter
    • Not Ranked
    • Joined on 12-03-2006
    • Posts 4
    • Points 135

    DNN 4 Master/Subtemplates

    I've attached a set of templates that are compatible with CodeSmith v2.6 (the free version) for custom DotNetNuke 4.x module development. Like .NET Tiers, these use a master template to control a number of subtemplates, allowing you to set all your property values once and then generate multiple output files. There's a detailed "How To" article here.

    The templates create the following output files for each selected table, allowing you to quickly and easily create functioning DotNetNuke modules. The generated View[ModuleName].ascx control contains a GridView and FormView that allows you to View, Add, Edit and Delete records right out of the box.

     

    You can generate additional custom stored procs and methods (beyond the standard five Get, GetAll, Add, Delete, and Update) by using a table column's extended properties.

    Currently there are only templates for VB.NET, but a C# set, along with several other improvements, is on my To Do List. 

    Periodic updates will be available from the download section of my website. If you run into any problems or have any suggestions for improvement, please feel free to leave a comment in the site's forum.

    Credit Where Credit Is Most Certainly Due: Portions of the template code are based on the DNN 3 templates created by Vicenç Masanas. I've also borrowed some concepts and code from both the .NET Tiers and NHibernate templates for generating output files and stripping table prefixes. Also, the code for the View.ascx file and codebehind is based on a great series of articles by Michael Washington here.

    Just to be on the safe side: This software is provided "as is" without warranty of any kind. By downloading or using it, you assume all risk.

    Filed under:
    • Post Points: 65
  • 01-03-2008 10:50 AM In reply to

    Re: DNN 4 Master/Subtemplates

    There's a detailed "How To" article here

    This link is broken.  Is there another place I can find this information.

    Thanks

    • Post Points: 5
  • 02-21-2008 11:28 AM In reply to

    • aleemzky
    • Not Ranked
    • Joined on 07-25-2007
    • Posts 1
    • Points 5

    Re: DNN 4 Master/Subtemplates

     Hello Lee, I have the same question as webmonkkymon. Can you please provide or guide us for "how to" section of your Master/Subtemplates codesmith templates?

     

    Thank you.

    Aleem Qureshi

    • Post Points: 5
Page 1 of 1 (3 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems