Top Banner
Aanmaken Dojo property EPISERVER CMS 7 www.patrickvankleef.com
20

EPiServer - Create dojo property

Jul 17, 2015

Download

Technology

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: EPiServer - Create dojo property

Aanmaken Dojo propertyEPISERVER CMS 7

www.patrickvankleef.com

Page 2: EPiServer - Create dojo property

www.patrickvankleef.com

Patrick van Kleef• Werkzaam bij Macaw

• Arlanet

• Content management systems

• EPiServer• 3+ jaar ervaring• Find• Commerce• Community

• Umbraco

• Blog: www.patrickvankleef.com

Page 3: EPiServer - Create dojo property

www.patrickvankleef.com

Inleiding

• EPiServer CMS versies• Custom property versie 6• Custom property versie 7

• DOJO

• Scenario custom property• Oplossingen

• Demo

Page 4: EPiServer - Create dojo property

www.patrickvankleef.com

EPiServer CMS• Versie 4• Webforms

Page 5: EPiServer - Create dojo property

www.patrickvankleef.com

EPiServer CMS• Versie 5• Webforms

Page 6: EPiServer - Create dojo property

www.patrickvankleef.com

EPiServer CMS• Versie 6• Webforms

Page 7: EPiServer - Create dojo property

www.patrickvankleef.com

EPiServer CMS• Versie 7• Inline Page editing• DOJO

• Versie 8

• Toekomst?

Page 8: EPiServer - Create dojo property

www.patrickvankleef.com

EPiServer CMS (5)6 - property• Admin mode

• PageTypeBuilder – Joel Abrahamsson

• PropertyData• Verantwoordelijk voor opslaan en ophalen waardes• Type• Default waarde

• PropertyString• Op basis van een bestaande property

• PropertyDataControl• UI rendering

• Webforms

Page 9: EPiServer - Create dojo property

www.patrickvankleef.com

Page PropertyType = CustomProperty

PropertyDataCreatePropertyControl()Opslaan & ophalen value

PropertyDataControlUI Rendering

Page 10: EPiServer - Create dojo property

www.patrickvankleef.com

EPiServer CMS 7 - property• Strongly typed page properties

• Module.config• Configuratie widget

• Assembly• Path• Client resources

• EditorDescriptor• Instellingen voor DOJO widget

• PropertyData• Verantwoordelijk voor opslaan en ophalen waardes

• Dojo widget• UI Rendering property

Page 11: EPiServer - Create dojo property

www.patrickvankleef.com

Page PropertyType = IEnumerable<string>UIHint = “custom”BackingType = typeof(CustomPropertyData)

EditorDescriptorUIHint = “custom”TargetType = IEnumerable<string>ClientEditingClass = “app.editors.property”

DOJO WidgetDeclare “app.editors.property”

DOJO StoreContentdata

PropertyDataName = CustomPropertyDataType = IEnumerable<string>Opslaan & ophalen value

Page 12: EPiServer - Create dojo property

www.patrickvankleef.com

DOJO

• Javascript Library• Ondersteund door alle browsers en devices

• Modulair - AMD (Asynchronous Module Definition)

Page 13: EPiServer - Create dojo property

www.patrickvankleef.com

DOJO

• Classes and Extensibility• Dojo/declare

Page 14: EPiServer - Create dojo property

www.patrickvankleef.com

DOJO

• Dijit UI Framework• Form widgets• DojoX

• Extra form widgets• IO helpers• WebSocket• Charting• Mobile solutions

Page 15: EPiServer - Create dojo property

www.patrickvankleef.com

Scenario contactformulier

• Pagina met een contactformulier• Voornaam• Achternaam• Land

• Elk land heeft een apart e-mailadres

• E-mail versturen naar land e-mailadres

Page 16: EPiServer - Create dojo property

www.patrickvankleef.com

Scenario contactformulier – Oplossingen

• Oplossing 1• Container pagina type• Land dropdown• E-mailadres tekstveld

• Oplossing 2• Contact pagina type• Land # e-mailadres tekstveld

Page 17: EPiServer - Create dojo property

www.patrickvankleef.com

Scenario contactformulier – Oplossingen

• Oplossing 3• Custom DOJO property• Landen uitlezen• Dynamisch e-mailadres tekstvelden

• Oplossing 4• Custom DOJO property• Container pagina’s selecteren

Page 18: EPiServer - Create dojo property

www.patrickvankleef.com

Demo

Page 19: EPiServer - Create dojo property

www.patrickvankleef.com

Javascript Debug Files

• > EPiServer 7.6

• EPiServer.CMS.UI.Sources Nuget package

• <clientresources debug=“true” />

• Ben McKernan• http://world.episerver.com/Blogs/Ben-McKernan/Dates/2014/8/Uncompres

sed-JavaScript-for-EPiServer-76/

Page 20: EPiServer - Create dojo property

www.patrickvankleef.com

Bedankt

• www.patrickvankleef.com

• www.github.com/patkleef