aem gems session template editor sept 14 2016

20
© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. The Template Editor Patrick Fauchere | Software Engineer

Upload: adobemarketingcloud

Post on 10-Jan-2017

66 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: AEM GEMS Session Template Editor Sept 14 2016

© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.

The Template EditorPatrick Fauchere | Software Engineer

Page 2: AEM GEMS Session Template Editor Sept 14 2016

© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.

Agenda1. Introduction and Concepts2. Create a simple template3. Edit template & advanced capabilities4. Technical architecture of templates5. Observe a custom template type

2

Page 3: AEM GEMS Session Template Editor Sept 14 2016

© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.

Template EditorMain Capabilities

• Compose templates out of existing components• Control how pages using the template can be edited• Pre-configure the design properties of the page and components• Provide initial content to the new pages

3

Page 4: AEM GEMS Session Template Editor Sept 14 2016

© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.

What it solvesMaintain hand-coded variations of templates

• Multiple variations of components• Multiple list of allowed components• Multiple component settings

Moved from static files to configuration

4

Page 5: AEM GEMS Session Template Editor Sept 14 2016

© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.

ResolutionMake use of the Configuration Manager• Centralized location for configurationsResource resolution strategy• /conf• /apps• /libs

5

Page 6: AEM GEMS Session Template Editor Sept 14 2016

© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.

Life CycleA template has various states

• Draft• Enabled• Disabled• Published

6

Page 7: AEM GEMS Session Template Editor Sept 14 2016

© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.

Design PropertiesThe policy characteristics

• Carries the design properties• Portable – can be located at different places• Reusable – can be shared by multiple templates• Provides the configuration for mapping the assets into components

7

Page 8: AEM GEMS Session Template Editor Sept 14 2016

© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 8

tMODULAR DESIGN

http://www.cuboro.ch/

• Content• Component• Template structure• Design properties

Page 9: AEM GEMS Session Template Editor Sept 14 2016

© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.

RolesCreating a new template requires the collaboration between

Developer• Builds components to be added to the templates and pagesTemplate Author• Provides templates and configurations out of the available componentsPage Author• Creates pages and content from the available templates and components

9

Page 10: AEM GEMS Session Template Editor Sept 14 2016

© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.

Kind DefinitionThe template editor terminology defines different kind of content

Locked Structure• Content restricted to the templateEditable Structure• Structure content set as editable on the pageInitial Content• Content provided by the template and editable on the page

10

Page 11: AEM GEMS Session Template Editor Sept 14 2016

© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.

Template Demo

11

Page 12: AEM GEMS Session Template Editor Sept 14 2016

© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.

Architecture

12

Page 13: AEM GEMS Session Template Editor Sept 14 2016

© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.

Template Summary

13

2 Created and used a new template

3 Explored the technical architecture

1 Walkthrough ofthe template concepts

Page 14: AEM GEMS Session Template Editor Sept 14 2016

© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.

Template-Type

Page 15: AEM GEMS Session Template Editor Sept 14 2016

© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.

CharacteristicsThe template-type contains the initial content of a template

• Template of template• Content structure copied over to the new template• Pre-configured set of configuration – policies, allowed components• No logical bond between the template type and the templates• Created by the Developer

15

Page 16: AEM GEMS Session Template Editor Sept 14 2016

© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.

Resource locationThe templating mechanics detail you need to know

Policy mapping• Structure: unique per component• Initial Content: by component typePolicy• Component path followed by policy node nameRoot Container• Static container required to start adding content to the templateEditable Structure Components• Flagged as editable on the structure aspect• Carries the properties on the initial aspect

16

Page 17: AEM GEMS Session Template Editor Sept 14 2016

© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.

Template-Type Demo

17

Page 18: AEM GEMS Session Template Editor Sept 14 2016

© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.

Template-Type Summary

18

2 Locate references and resources

3 Observed the structure ofa template-type

1 Purpose of the template-type

Page 19: AEM GEMS Session Template Editor Sept 14 2016

© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.

ReferencesUseful resources

Editable Template Documentation• https://docs.adobe.com/docs/en/aem/6-2/develop/templates/page-templates-editable.htmlWe.Retail Repository• https://github.com/Adobe-Marketing-Cloud/aem-sample-we-retailCustom Template Type Repository• https://github.com/Adobe-Marketing-Cloud/aem-sites-example-custom-template-typeFrontend Core Editor API• https://docs.adobe.com/docs/en/aem/6-2/develop/ref/jsdoc/ui-touch/editor-core/index.html

19

Page 20: AEM GEMS Session Template Editor Sept 14 2016