Kentico CMS Web parts development Karol Jarkovsky karoljkentico
Kentico CMS Web parts development Karol Jarkovsky (karolj@kentico. com) Consultant, Kentico Software s. r. o.
Motivation “Learning is a lifetime process, but there comes a time when we must stop adding and start updating. ” Robert Brault 1/8
Agenda Web parts Life Cycle Web parts Architecture Web parts Development Web parts Future 2/8
Web parts Life Cycle Page Init Load Pre. Render Web part On. Content. Loaded 3/8 Init Load Pre. Render
Web parts Life Cycle CMSPortal. Manager CMSPage. Placeholder CMSAbstract. Web. Part CMSWeb. Part. Zone CMSAbstract. Layout . CMSPortal. Manager_Init() . Load. Content() 4/8 . Load. Content() . Load. Web. Parts. Content() . Load. Content()
Web parts Architecture CMSAbstract. Web. Part class Properties bool Render. Envelope object Related. Data CMSWeb. Part. Zone Parent. Zone bool Stand. Alone bool Stop. Processing string Not. Resolve. Properties string SQLProperties View. Mode. Enum View. Mode string Cache. Item. Name string Cache. Dependencies bool Is. Widget 5/8 Methods Get. Value()/Set. Value() Clear. Cache() Reload. Data() Reload. Consumers() Get. Cache. Dependency()
Web parts Development 6/8
Web parts Future Layout web parts Dashboard Portal Engine for ASPX templates 7/8 • New base class CMSAbstract. Layout. Web. Part • Advanced layout as web part • Saves development time • New section in CMS Desk-> My Desk and Site Manager-> Dashboard • Personalized content • Widget support • Allows developers define template as ASPX • Allows editors to further enhance template from CMS Desk-> Design tab
Questions ? 8/8
Questions Thank you
- Slides: 10