|
SYS-CON MAGAZINES |
TOP LINUX LINKS YOU MUST CLICK ON ASP.NET Rapid Module Development for DotNetNuke
Instant DotNetNuke modules
By: Mark Hoskins
Feb. 18, 2006 10:45 AM
Now we can run NAnt to build the module and package it for installation into your portal. There is one quirk that must be dealt with prior to building in NAnt. First, open up the DNN manifest file, which was created in the module folder using notepad. Find the line:
<businesscontrollerclass>CompanyName.ProjectName.ProjectName.BusinessController, and change it to read:
<businesscontrollerclass>CompanyName.ProjectName.ProjectNameBusinessController, (and remove the extra period before BusinessController). Now you can go to the command prompt in Windows and type "Nant -buildfile:" and then open up a new window, browse to the folder that you just generated, and drag the file named CompanyName.ProjectName.build into the command prompt window. Just click enter and NAnt should produce a complete, compiled, and packaged module for you with the source and install packages placed into the same folder as your module code.
Designing the View and Edit Controls The Add screen is shown in the module actions menu as well as at the bottom of the container. Some containers may not expose this control; therefore if this functionality is desired, then ensure that your selected container for the module admin container includes the links token. The list screens show a datagrid of the entries for that particular table, with the ability to edit, delete, or add to the table. A few really handy features of this screen are that you can select numerous items and delete them, and this list includes full integration of the DotNetNuke pager control for simplified paging and sorting of the results. The links on the listed items in each table can be selected and can display a detailed edit screen, thereby allowing you to alter the selected item. The edit and add screens are actually composed from the same user control, so the bulk of your development work for the administration screens lies within this area. Although this module can be installed and placed onto a page out of the box, there are several areas that need further customization. The admin screens are created using only textboxes for the corresponding data entry areas for each table. You will need to define some of these as drop-down lists if they represent a foreign key or a series of values, or as a checkbox for Boolean fields. This part will generally consume a fair amount of the development time required to create your module. You will notice that the default View screen that is visible when you first place the module on a page is blank. You will need to specify what to show to viewers of this module. Because the entire administration, data, and business layers are already created, you can leverage these elements to substantially create the View screen that is presented. Other than customizing the admin screens, this is essentially the only major part of the module that will need to be created by a developer. In this screen there is no definitive example because the display essentially comprises the outward-facing elements of your module. This screen could be an advanced calendar as the central part of a detailed booking system, or a complete human resources system - this is really where you, as the developer, become empowered.
Deploying the Module As you can see from the aforementioned steps, the creation and deployment of the fabric of your new custom module can be dramatically improved by utilizing ATGen SDK, thus leaving your precious development time better spent doing more productive things like playing games on your Xbox. Happy coding. Resources
Subscribe to our RSS feeds now and receive the next article instantly!SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS |
||||||||||||