Date picker widget: Register the date picker control
To use the date picker control on Sitefinity CMS pages, you must register it in the Toolbox. Perform the following:
Add a reference to the date picker control in the Sitefinity CMS project
You add a reference in the following way:
- Open the
bin/Debug
folder of the DatePicker project.
- Copy
DatePicker.dll
.
- Open the
bin
folder of the Sitefinity CMS project.
- Paste
DatePicker.dll
.
Register the control
You register the control in the Sitefinity CMS Toolbox in the following way:
- In Sitefinity CMS backend, navigate to Administration » Settings » Advanced.
- In the treeview on the left, select Toolboxes » Toolboxes » PageControls » Sections.
- To add a new section for your custom controls, click Create New.
- In the Name field and in the Title field, enter Custom
- Click Save changes.
- In the treeview on the left, select Custom » Tools.
- To register your control, click Create New.
- In the Control CLR Type or Virtual Path field, enter DatePicker.DatePickerField
This is the type of the control in the assembly.
- In the Name field, enter DatePicker
- In the Title field, enter Date Picker
- Click Save changes.
The date picker control is now registered in Sitefinity CMS toolbox. You can drop it on a page and see how it performs. For more information, see Date picker widget: Use the date picker control.