Master ofDatatypes<br />
Master ofDatatypes<br />Tim Geyssens<br />Live in Belgium work for Umbraco<br />Core Work<br />Umbraco.tv episodes<br />Tr...
Master ofDatatypes<br />Datatypes ?<br />
Master ofDatatypes<br />Datatypes<br />Extendable (create your own)<br />More diffucult things to extend<br />
Master ofDatatypes<br />Datatypes<br />Session goal<br />Rich & Configurable<br />Take advantage of the tools = easy<br />
Master ofDatatypes<br />Tools<br />UsercontrolWrapper<br />Data Editor Settings<br />Xml Serialization<br />Razor<br />
Master ofDatatypes<br />Warning<br />These tools make it really, really easy<br />(so might be a short session)<br />Altou...
Master ofDatatypes<br />UserControlWrapper<br />
Master ofDatatypes<br />UC Wrapper<br />Any Usercontrol as datatype<br />Implement interface<br />IUsercontrolDataEditor<b...
Master ofDatatypes<br />Datatype #1<br />
Master ofDatatypes<br />Data Editor Settings<br />
Master ofDatatypes<br />Data Editor Settings<br />Add settings to your datatype<br />More flexibility, reuse options<br />...
Master ofDatatypes<br />Datatype #2<br />
Master ofDatatypes<br />Data Editor Settings<br />Not limited to textbox<br />21 types out of the box<br />Extend with you...
Master ofDatatypes<br />XML Serialization<br />
Master ofDatatypes<br />XML Serialization<br />Store rich data (not a single value)<br />Xml properties (related links)<br...
Master ofDatatypes<br />XML Serialization<br />Not familiar with serialization<br />2 Helper Methods<br />SerializationHel...
Master ofDatatypes<br />Datatype #3<br />
Master ofDatatypes<br />Razor<br />
Master ofDatatypes<br />Razor<br />Outputting our XML Property<br />Easy with razor<br />.notation<br />Note that the root...
Master ofDatatypes<br />Questions ?<br />
Master ofDatatypes<br />
Upcoming SlideShare
Loading in …5
×

Master of Datatypes, Umbraco Be Festival

19,422 views
19,345 views

Published on

Slides from session at Umbraco BE festival, In this session we'll take a look at the datatype improvements introduced in v 4.6 and 4.7 of Umbraco.

By taking advantage of the data editor settings creating configurable datatypes is a breeze.

Combine that with the usercontrol wrapper and xml data storage and you'll be able to create complex and versatile custom datatypes in minutes.

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
19,422
On SlideShare
0
From Embeds
0
Number of Embeds
18,056
Actions
Shares
0
Downloads
8
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Master of Datatypes, Umbraco Be Festival

  1. 1. Master ofDatatypes<br />
  2. 2. Master ofDatatypes<br />Tim Geyssens<br />Live in Belgium work for Umbraco<br />Core Work<br />Umbraco.tv episodes<br />Training <br />Support<br />Blog at Nibble.be<br />
  3. 3. Master ofDatatypes<br />Datatypes ?<br />
  4. 4. Master ofDatatypes<br />Datatypes<br />Extendable (create your own)<br />More diffucult things to extend<br />
  5. 5. Master ofDatatypes<br />Datatypes<br />Session goal<br />Rich & Configurable<br />Take advantage of the tools = easy<br />
  6. 6. Master ofDatatypes<br />Tools<br />UsercontrolWrapper<br />Data Editor Settings<br />Xml Serialization<br />Razor<br />
  7. 7. Master ofDatatypes<br />Warning<br />These tools make it really, really easy<br />(so might be a short session)<br />Altough I’ll be creating 3 datatypes<br />
  8. 8. Master ofDatatypes<br />UserControlWrapper<br />
  9. 9. Master ofDatatypes<br />UC Wrapper<br />Any Usercontrol as datatype<br />Implement interface<br />IUsercontrolDataEditor<br />Single Member <br />Property Value (type object)<br />
  10. 10. Master ofDatatypes<br />Datatype #1<br />
  11. 11. Master ofDatatypes<br />Data Editor Settings<br />
  12. 12. Master ofDatatypes<br />Data Editor Settings<br />Add settings to your datatype<br />More flexibility, reuse options<br />Super Easy<br />Mark public properties with data editor settings attribute<br />
  13. 13. Master ofDatatypes<br />Datatype #2<br />
  14. 14. Master ofDatatypes<br />Data Editor Settings<br />Not limited to textbox<br />21 types out of the box<br />Extend with your own types<br />
  15. 15. Master ofDatatypes<br />XML Serialization<br />
  16. 16. Master ofDatatypes<br />XML Serialization<br />Store rich data (not a single value)<br />Xml properties (related links)<br />UC Wrapper return xml string<br />Custom to xml code or<br />Serialize your object<br />
  17. 17. Master ofDatatypes<br />XML Serialization<br />Not familiar with serialization<br />2 Helper Methods<br />SerializationHelper<br />ValueToXmlString(object value)<br />ValueFromXmlString(object value, Type type)<br />
  18. 18. Master ofDatatypes<br />Datatype #3<br />
  19. 19. Master ofDatatypes<br />Razor<br />
  20. 20. Master ofDatatypes<br />Razor<br />Outputting our XML Property<br />Easy with razor<br />.notation<br />Note that the root node is removed<br />
  21. 21. Master ofDatatypes<br />Questions ?<br />
  22. 22. Master ofDatatypes<br />

×