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 ForumsEventsEventsI want to change custom text  field to checkbox.I want to change custom text field to checkbox.
Previous
 
Next
New Post
2/9/2011 12:23 PM
 
I am installing a copy of Visual Studio Standard 2008 on a test box, along with DNN 5.5 and the new events module so that I can change the properties for customtext1.  I want to change it to System.Web.UI.WebControls.CheckBox.
Having never done anything in Visual Studio before I wanted to know if this is going to be a pretty easy change and if anyone could offer any guidance.

Thanks in advance!
 
New Post
2/9/2011 4:37 PM
 
The first thing to do would be make sure you are able to compile the module, and that you can debug it. So compile in debug mode and then set a likely breakpoint that you will hit. Then run your project. If the breakpoint is hit you are off and running. If you can't get to this point then I would suggest that you look elsewhere for advice on how to use Visual Studio because this isn't a help forum for it.

With regard CustomField1, I would tackle this at the user interface layer only since that will minimise the number of changes you will have to make and not impact your database.

This should be pretty easy in thye edit view, because there are specific controls already in place which you can change and then use ctype to change from what is stored in the database to the boolean required for the checkbox.

However, not sure how you would do this in the other views, many of which are now tokenised/templated. I guess you could output an appropriate bit of html to display the checkbox as needed. This would need to be done in the TokenReplace code in EventController.

Bear in mind that if you want to take advantage of any module upgrades you will have to re-work your changes after each upgrade.

You asked if it was easy... If you haven't used Visual Studio before, have you coded in VB.Net before? If not, I wouldn't advise taking it on. Depends on what your coding skills are....

Cheers
Roger

DNN MVP
Events - Get the latest version - Upgrade now!!
Feedback 6.4.2 - Now available - Give it a go!
Find us on Codeplex - DNN Events, DNN Feedback
Requirements/Bugs - Please submit them on Codeplex
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsI want to change custom text  field to checkbox.I want to change custom text field to checkbox.


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