Wrox Programmer Forums
|
BOOK: Professional DotNetNuke Module Programming ISBN: 978-0-470-17116-5
This is the forum to discuss the Wrox book Professional DotNetNuke Module Programming by Mitchel Sellers and Shaun Walker - Wrox DotNetNuke Series Editor; ISBN: 978-0-470-17116-5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional DotNetNuke Module Programming ISBN: 978-0-470-17116-5 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 14th, 2009, 07:38 AM
Registered User
 
Join Date: Mar 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question Adapting Guestbook for DNN 4.x?

Has anyone attempted to adapt the Guestbook example to DNN 4.09.02? I believe there would be significant differences in the manifest. Being new to this I'm not sure of other ramifications. Would I need to have a separate WAP for ViewGuestbook vs. SignGuestbook with separate manifests/install processes, etc? Or is the whole concept of trying to work with this example in DNN 4.x just a bad idea?

Thanks,
Roy
 
Old March 31st, 2009, 12:45 AM
Wrox Author
 
Join Date: Jul 2008
Posts: 74
Thanks: 1
Thanked 8 Times in 8 Posts
Send a message via MSN to msellers
Default

Roy,

Yes the manifest files are vastly different, but if I remember correctly, I provided an example of the 4.x manifest format in one of the appendix sections. (I don't have a copy of the book in front of me at the moment).

The only major change is that the version of DotNetNuke.dll that the module is built against, must be a 4.x version rather than a 5.x version. WAP modules will work with the version they are compiled against, and any future versions. So if you compiled against the 4.7.0 version of DNN, it will work in 4.9.2 and 5.0.1 or any other version afterwards.

If you have this desire, you can either setup a DNN installation locally with an older version, or a simple workaround is to download the install version of say 4.7.0 and save the DotNetNuke.dll file to a specific location, then simply update the WAP project reference to DotNetNuke.dll to use that DLL rather than the one in the current install location. (This is the method I use, as I have to build against many different versions).
__________________
Mitchel Sellers
Microsoft C# MVP, MCITP
Director of Development
IowaComputerGurus Inc.

My blog for .NET and DotNetNuke info

Author of "Professional DotNetNuke Module Programming"

Tech Editor on "Visual Studio 2010 six-in-one" and "Pro C# 4.0"
 
Old May 3rd, 2009, 08:44 AM
Registered User
 
Join Date: May 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Any update on this

This is my first time writting a module... I too wanted to write one with 4.9.3 as it is recommended for production use at dotnetnuke.com. I ran into the same problem, but could not find the 4x manifest example in any of the appendicies. I did however, figure out how to do it. I used the default manifest the was generated by the template. I then simply added to it what made sense by looking at the 5.0 manifest example.
You asked the question "Would I need to have a separate WAP for ViewGuestbook vs. SignGuestbook with separate manifests/install processes"? The answer is no. The 4.0 formate allows multiple <module> tags within the <modules> block. The trick is to use ViewSettings.axcs for the GuestbookCS module and the ViewSettings.axcs for the Sign Guestbook module.
Mitch... I want to thank you for what you have built for the public domain and also for writting a book that shows us more detain on module development. As I mentioned above... I am new to module development. I am taking notes along the way where I ran into some begginer problems. I will submit those as possible clarifications you may want to add... On the other hand, you got me very close and figuring out the other stuff made it more concrete. Just the same I will submit my findings

Last edited by jachenbach; May 3rd, 2009 at 04:37 PM..
 
Old May 11th, 2009, 05:36 AM
Registered User
 
Join Date: May 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Founded a dnn file for the 4.x

Hi jachenbach
have you founded a .dnn file for the 4.x version?

thanks
Rmartin
 
Old May 11th, 2009, 07:47 PM
Registered User
 
Join Date: May 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I played around until I got it to work. I was able to deploy to a non-dev 4x installation with this.

Code:
dotnetnukeversion="3.0"type="Module">
<folders>
<folder>
<name>GuestbookCS</name>
<friendlyname>GuestbookCS</friendlyname>
<foldername>GuestbookCS</foldername>
<modulename>GuestbookCS</modulename>
<description>A GuestbookCS module</description>
<version>01.00.00</version>
<businesscontrollerclass>YourCompany.Modules.GuestbookCS.GuestbookCSController</businesscontrollerclass>
<modules>
<module>
<friendlyname>GuestbookCS</friendlyname>
<cachetime>0</cachetime>
<controls>
<control>
<src>DesktopModules/GuestbookCS/ViewGuestbookCS.ascx</src>
<type>View</type>
<helpurl></helpurl>
</control>
<control>
<key>Edit</key>
<title>Edit Content</title>
<src>DesktopModules/GuestbookCS/EditGuestbookCS.ascx</src>
<type>Edit</type>
<helpurl></helpurl>
</control>
<control>
<key>Settings</key>
<title>GuestbookCS Settings</title>
<src>DesktopModules/GuestbookCS/Settings.ascx</src>
<type>Edit</type>
<helpurl></helpurl>
</control>
</controls>
</module>
</modules>
<files>
<file>
<name>GuestbookCS.dll</name>
</file>
<file>
<name>ViewGuestbookCS.ascx</name>
</file>
<file>
<name>EditGuestbookCS.ascx</name>
</file>
<file>
<name>Settings.ascx</name>
</file>
<file>
<path>App_LocalResources</path>
<name>ViewGuestbookCS.ascx.resx</name>
</file>
<file>
<path>App_LocalResources</path>
<name>EditGuestbookCS.ascx.resx</name>
</file>
<file>
<path>App_LocalResources</path>
<name>Settings.ascx.resx</name>
</file>
<file>
<name>01.00.00.SqlDataProvider</name>
</file>
<file>
<name>Uninstall.SqlDataProvider</name>
</file>
</files>
</folder>
</folders>
</dotnetnuke>

 
Old May 12th, 2009, 05:46 AM
Registered User
 
Join Date: May 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi jachenbanch

hi have tried to use your file, replace CF with vb..... but doesent'work
can you help me?

this is the file tyed in DNN 4.9.3 the error is

Error Importing Selected Manifest



Code:
<dotnetnuke version="3.0"type="Module">
<folders>
<folder>
<name>GuestbookVB</name>
<friendlyname>GuestbookVB</friendlyname>
<foldername>GuestbookVB</foldername>
<modulename>GuestbookVB</modulename>
<description>A GuestbookVB module</description>
<version>01.00.00</version>
<businesscontrollerclass>Wrox.Modules.GuestbookVB.GuestbookVBController</businesscontrollerclass>
<modules>
<module>
<friendlyname>GuestbookVB</friendlyname>
<cachetime>0</cachetime>
<controls>
<control>
<src>DesktopModules/GuestbookVB/ViewGuestbookVB.ascx</src>
<type>View</type>
<helpurl></helpurl>
</control>
<control>
<key>Edit</key>
<title>Edit Content</title>
<src>DesktopModules/GuestbookVB/EditGuestbookVB.ascx</src>
<type>Edit</type>
<helpurl></helpurl>
</control>
<control>
<key>Settings</key>
<title>GuestbookVB Settings</title>
<src>DesktopModules/GuestbookVB/Settings.ascx</src>
<type>Edit</type>
<helpurl></helpurl>
</control>
</controls>
</module>
</modules>
<files>
<file>
<name>GuestbookVB.dll</name>
</file>
<file>
<name>ViewGuestbookVB.ascx</name>
</file>
<file>
<name>EditGuestbookVB.ascx</name>
</file>
<file>
<name>Settings.ascx</name>
</file>
<file>
<path>App_LocalResources</path>
<name>ViewGuestbookVB.ascx.resx</name>
</file>
<file>
<path>App_LocalResources</path>
<name>EditGuestbookVB.ascx.resx</name>
</file>
<file>
<path>App_LocalResources</path>
<name>Settings.ascx.resx</name>
</file>
<file>
<name>01.00.00.SqlDataProvider</name>
</file>
<file>
<name>Uninstall.SqlDataProvider</name>
</file>
</files>
</folder>
</folders>
</dotnetnuke>

Last edited by rmartin; May 12th, 2009 at 05:54 AM..
 
Old May 12th, 2009, 06:41 AM
Registered User
 
Join Date: May 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have tried more and more times with the dnn file in the post before
when I press "import definition" the site refresh on the module page, the module is installed. but doesen't work!!!
I insert it in ContentPane but nothing work?

Can you help me?
Rmartin





Similar Threads
Thread Thread Starter Forum Replies Last Post
Guestbook DNN Manifest n7zfi BOOK: Professional DotNetNuke Module Programming ISBN: 978-0-470-17116-5 4 August 26th, 2010 08:45 AM
Adapting HTML in Linux anukagni Beginning PHP 5 May 30th, 2006 07:09 PM
Guestbook in PHP karankapur_in PHP How-To 1 February 1st, 2006 05:51 AM
Adapting class.DataManager for MySQL mercury7 PHP Databases 0 January 16th, 2006 02:37 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.