Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListNew Data Type: Custom; Thank You!; AWESOME ADDITION TO DNN LANDSCAPE!!!New Data Type: Custom; Thank You!; AWESOME ADDITION TO DNN LANDSCAPE!!!
Previous
 
Next
New Post
5/6/2009 9:39 PM
 

I used this to store the relative path to my custom control of choice. Hello:

Thank you SOOOOO Much for your outstanding contributions (all members who worked on this!!).

After working with several commercial modules with similar capabilities, extending this module to support my use case was DELIGHTFUL.

Specifically, my client needed a custom calculator on the form to determine how many licenses a customer needed to buy because of it's specific licensing policy. I needed a way to incorporate a custom license calculator component into a user defined form, and it was intimidatingly complex in the other product i had at my disposal. Additionally, if all possible, I wanted a way to incorporate other custom controls without having to add a new datatype, but a simple web user control.

Within five minutes of downloading and configuring the source for this module, I found all I needed.

Step 1) I noticed both the URL Datatype and the RTF data type loaded other custom controls.
Step 2) It was a simple matter to copy the TextHTML class into a new class named 'Custom' replaced all instances of 'TextHTML' with 'Custom',
Step 3) I removed the case for the simple text box. In place of the defaultvalue: i stored the relative path to the user control and loaded this in where the RTF editor was getting loaded. very very simple switch.
Step 4) Copied all of the URL_ settings in the SharedResources.resx file and replaced "URL" with "Custom" thus "URL_DefaultValue.Help" becomes "Custom_DefaultValue.Help". I hit a bump when I didn't change "Custom.Text" from URL to Custom, it caused a duplicate key exception.
Step 5) Created a new directory in the root of the module: CustomControls.
Step 6) Created a new class in Components named BaseCustomControl, inherited from System.Web.UI.UserControl.
Step 7) Added new public string Property "Text" to BaseCustomControl.
Step 8) Added new web user control to the CustomControls directory created in Step 5. Inherited from BaseCustomControl.
Step 9) My custom control when it loads reads its value from the text property. When saved same thing.
Step 10) Add "Custom" to Datatypes.Config

I am pretty sure thats everything. If you want this done for your module and you can't figure out what the hell I just said, I'd be happy to do it for a nominal fee. Times are tough, I don't have a cake joe corporate IT job making buku bucks any more, so I only eat what i can kill.

Total Time to Solution: 2 hours.

Great Work! Outstanding Design!

 

form and List Control Demo

 
New Post
5/8/2009 7:37 AM
 

Kenneth, great you worked it out, alone and without documentation (beside the FnL source).

Adding new datatypes to UDT was quite cumbersome, as it required a lot of code changes all over the whole module. form and List was redesigned to add custom datatypes just by configuration. The upcoming 5.0.2. allows you to add also namespaces for your custom datatypes in datatypes.config. That will allow you to add new datatypes without any modification to the module itself  (beside of editing datatypes.config).

 
New Post
10/15/2010 1:52 PM
 
Kenneth - potential client here, but I can't figure out how to contact you - your profile doesn't list an email addy.  I have a project migrating .NET app to DNN.

Please send contact info to cat3media@gmail.com
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListNew Data Type: Custom; Thank You!; AWESOME ADDITION TO DNN LANDSCAPE!!!New Data Type: Custom; Thank You!; AWESOME ADDITION TO DNN LANDSCAPE!!!


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

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

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. 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.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out