180 likes | 372 Views
Sitecore SUGNL Meeting – SUGNL Website. 13 maart 2013. Wie ben ik ?. Robbert Hock Sitecore MVP 2010 Freelance Gewerkt voor Sitecore partners: Caesar Experts, eFocus , Fortius , Iquality & Lukkien Mede- oprichter en organisator van Sitecore User Group Nederland.
E N D
Sitecore SUGNL Meeting – SUGNL Website 13 maart2013
Wiebenik? • Robbert Hock • Sitecore MVP 2010 • Freelance • Gewerktvoor Sitecore partners: Caesar Experts, eFocus, Fortius, Iquality & Lukkien • Mede-oprichter en organisator van Sitecore User Group Nederland Sitecore SUGNL Meeting - SUGNL Website (13 maart 2013)
Start SUGNL Website • Augustus 2012 – HTML Prototype • Augustus 2012 – Pre Meeting bij Sitecore • Estate Redesign op basis van prototype • Eindoktober 2012 Redesign gereed • Ontwikkeling in avonduren • Website live op 15 februari 2013 Sitecore SUGNL Meeting - SUGNL Website (13 maart 2013)
HTML Prototype Augustus Sitecore SUGNL Meeting - SUGNL Website (13 maart 2013)
HTML Prototype Augustus Sitecore SUGNL Meeting - SUGNL Website (13 maart 2013)
Redesign Estate Sitecore SUGNL Meeting - SUGNL Website (13 maart 2013)
Technieken • Zurb Foundation, the most advanced responsive front-end framework in the world. • Sitecore 6.6 Update-3 • Glass Sitecore Mapper Framework Sitecore SUGNL Meeting - SUGNL Website (13 maart 2013)
Waarom Glass Sitecore Mapper Framework? • Greenfield project • Open Source Sitecore project • Object mapping framework, Sitecore items -> object model • Page Editor support • Unit testing mogelijk • Razor alsview engine i.p.vwebforms • Code generatiemogelijk met T4 templates (TDS) Sitecore SUGNL Meeting - SUGNL Website (13 maart 2013)
Installatie Glass Mapper Framework • Nuget (http://nuget.org/packages/Glass.Sitecore.Mapper) Sitecore SUGNL Meeting - SUGNL Website (13 maart 2013)
Overigeinstallatie en configuratie • Sitecore package Glass.Sitecore.Mapper.Razor.zip • Global.asax • InitializeGlassMapper pipeline (Mike Reynolds) http://sitecorejunkie.com/2013/02/01/kick-start-glass-sitecore-mapper-in-a-sitecore-initialize-pipeline/ Sitecore SUGNL Meeting - SUGNL Website (13 maart 2013)
Web.config Razor Sitecore SUGNL Meeting - SUGNL Website (13 maart 2013)
We’re good to go! Sitecore SUGNL Meeting - SUGNL Website (13 maart 2013)
Demo: Hoe bouw je een component? Sitecore SUGNL Meeting - SUGNL Website (13 maart 2013)
Tips Placeholders: <div class="three columns"> @Placeholder("content-left-column") </div> In Glass.Sitecore.Mapper.Razor.config version 2.0.11.0 spelling mistake: <controltemplate="glassstrongrazor" type="Glass.Sitecore.Mapper.Razor.RenderingTypes.TypedRazorRenderingType, Glass.Sitecore.Mapper.Razor" propertyMap="Type=type, Name=name, Assembly=assembly"/> i.p.v. <controltemplate="glasstypedrazor" type="Glass.Sitecore.Mapper.Razor.RenderingTypes.TypedRazorRenderingType, Glass.Sitecore.Mapper.Razor" propertyMap="Type=type, Name=name, Assembly=assembly"/> Sitecore SUGNL Meeting - SUGNL Website (13 maart 2013)
Media Geen build-in FieldType public virtual IEnumerable<MediaFileModel> Files { get; set; } [SitecoreClass] public class MediaFileModel : IGlassBase { [SitecoreField("Attachment")] public virtual Stream File { get; set; } [SitecoreField("File Path")] public virtual string FilePath { get; set; } [SitecoreField("MimeType")] public virtual string MimeType { get; set; } [SitecoreField("Title")] public virtual string Title { get; set; } [SitecoreField("Format")] public virtual string Format { get; set; } [SitecoreField("Extension")] public virtual string Extension { get; set; } } Sitecore SUGNL Meeting - SUGNL Website (13 maart 2013)
Glass Sitecore Mapper info • Website -> http://www.glass.lu/ • Sitecore Virtual User Group webinar http://www.youtube.com/watch?v=9DKzvPTUEYs • Github -> https://github.com/Glass-lu/Glass.Sitecore.Mapper • Twitter-> http://twitter.com/Glasslu • Google Discussiegroepen-> https://groups.google.com/forum/?fromgroups=#!forum/glasssitecoremapper Sitecore SUGNL Meeting - SUGNL Website (13 maart 2013)
SUGNL Website • Website • http://www.sugnl.net • Github https://github.com/KayeeNL/SUGNL-Website Sitecore SUGNL Meeting - SUGNL Website (13 maart 2013)
Bedankt! Vragen? Sitecore SUGNL Meeting - SUGNL Website (13 maart 2013)