SlideShare ist ein Scribd-Unternehmen logo
1 von 54
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 1
User Interface
customization
for AEM 6
CQ Gems
May 7th, 2014
!
Gilles Knobloch
Damien Antipa
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 2
working on AEM/Granite/Coral and
wherever Javascript is used
4 years of AEM experience
working on AEM/Granite/Coral
architect of the Sling Resource Merger
Damien Antipa, Senior UX Engineer
Gilles Knobloch, Engineering Manager
@visiongeist
@gilknob
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 3
Introduction
New UI: Mobile first, Desktop in mind
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 4
Introduction
- Granite UI introduced in 5.6.0
- Now spread across multiple UIs of the product
- UI framework provides base components
!
Challenges
Extensible technology for partners/customers
!
Goal of the session
Understand how to extend admin screens and page authoring
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 5
Extending the Administration pages
- Extend existing admin screen
- Create a custom admin screen
- Sling Resource Merger
- Includes
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 6
Sling Resource Merger
https://issues.apache.org/jira/browse/SLING-2986
!
- Custom resource provider
- Overlays of resources using resource resolver search paths
- Working as a diff
- Custom Sling vocabulary
!
Overall goal: override in /apps, never touch /libs
- Guarantees upgradability
- Easier for customers to debug
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 7
Sling Resource Merger
Add or override a property
!
Create the corresponding property within /apps

(the property will have priority based on Sling Resource Resolver configuration)
!
Changing the type of the property is supported
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 8
Sling Resource Merger
Add or override a property
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 9
Sling Resource Merger
Delete one or more properties
!
Create the corresponding node within /apps,
Add sling:hideProperties property: list of properties to delete (String[])
!
* wildcard can be used to delete all the properties
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 10
Sling Resource Merger
Delete one or more properties
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 11
Sling Resource Merger
Delete a node (and its children)
!
Create the corresponding node within /apps
Set sling:hideResource to true (Boolean)
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 12
Sling Resource Merger
Delete a node (and its children)
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 13
Sling Resource Merger
Delete children of a node (but keep the properties of the node)
!
Create the corresponding node within /apps,
Add sling:hideChildren property: list of children to delete (String[])
!
* wildcard can be used to delete all the children
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 14
Sling Resource Merger
Delete children of a node
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 15
Sling Resource Merger
Reorder nodes
!
Create the corresponding node within /apps
Set sling:orderBefore to the name of the sibling where that node should be
reordered before (String)
!
TODO: support redefining the whole list of children
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 16
Sling Resource Merger
Reorder nodes
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 17
Extend existing admin screen
Sling Resource Merger is our friend!
!
- Update root title for breadcrumb
- Custom documentation links (sling:hideChildren, sling:orderBefore)
- Additional toolbar action
- Restrict Create Site to administrators (custom rendering condition)
- Default layout to list view, removed toggle to card view (sling:hideResource)
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Create a custom admin screen
18
Launches Console
- Custom console
- Custom menu entry
- Specific actions
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 19
Create a custom admin screen
Root space for Launches console
Granite UI page resource
Page definition
Custom components (styles, scripts, JSPs)
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 20
Create a custom admin screen
Add in navigation
Extend navigation
Give same ID as your console and point to it
Specify location in the tree
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 21
Create a custom admin screen
Custom action bar
- Build your own components
- Include the corresponding client
libraries for custom actions
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 22
Granite UI Includes
granite/ui/components/foundation/include
!
- Specify path to include
Can be used to extend component dialogs
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 23
The new Page Authoring 

in AEM 6.0
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 24
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 25
Customer Page = ContentFrame
Editing Features = EditorFrame
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 26
Layer switcher
Layer switcher
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 27
These are Overlays
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 28
Sidepanel
AssetGroups
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 29
Components
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 30
Toolbar
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 31
What is an Editable?
- is an instance of a component on a page
- allows access to the page’s DOM and its overlay
- is aware of its JCR path and edit configuration
- all Editable’s of the current page are accessible
through Granite.author.store
- Constructor: Granite.author.Editable
- inherits from Granite.author.Inspectable
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 32
What is a layer?
- A layer is an independent bundle of functionality which can be
activated in order to manipulate or interact with the page
- What can I do with a layer? What ever you want. 

(but please cleanup:-)
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
- Toolbar action
- Inplace Editor
- Custom Layer
- Page action
Extending the Page Authoring
- Assetfinder Group
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 34
Before we start…
- Javascript Namespace: Granite.author
- Overlays are managed by overlayManager
- ClientLib category hook: cq.authoring.editor.hook
- Current page’s Editables are in Granite.author.store
- A lot of page data is in Granite.author.page
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 35
Custom toolbar action
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Still working: Adding custom actions to components
36
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 37
Still working: Adding custom actions to components
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 38
New: Manipulating the toolbar with Javascript
- understand eventing in the authoring channel
- use global objects
- toolbar entry definition
- component independent actions
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 39
'CUSTOM': {!
icon: 'coral-Icon--gear',!
text: Granite.I18n.get('Custom'),!
handler: function (editable, param, target) {!
alert('my custom action');!
// do not close toolbar!
return false;!
},!
condition: function (editable) {!
// optional condition to show action!
return !!editable.config.orderable;!
},!
render: function (dom) {!
// custom rendering!
return dom;!
},!
// could be executed when only one editable is selected!
// default: false!
isNonMulti: true !
}!
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 40
Adding a screenshot functionality
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Custom page action
41
Add an action to page authoring toolbar
Example: a button to translate the page
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 42
Custom page action
- define as a header action
- cq-Translate-action used as jQuery selector
new action added under /apps
extension to cq.authoring.editor client library
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 43
Inplace Editors
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 44
Create an Inplace Editor
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 45
var MyEditor = function () {!
!
};!
!
MyEditor.prototype.setUp = function (editable) {!
!
};!
!
MyEditor.prototype.tearDown = function (editable) {!
!
};!
!
Granite.author.editor.register(‘myeditor', new MyEditor());!
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 46
How we created the title editor
- manipulate the Editable’s DOM
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 47
Create a Hybrid Editor
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 48
var textImageEditorConfig = {!
editors: [!
{!
editorType: "text",!
imageClass: "coral-Icon coral-Icon--text coral-Icon--sizeL"!
},!
{!
editorType: "image",!
imageClass: "coral-Icon coral-Icon--image coral-Icon--sizeL"!
}!
]!
};!
!
Granite.author.editor.TextImageEditor = function () {!
};!
!
Granite.author.editor.TextImageEditor.prototype = !
new Granite.editor.HybridEditor(textImageEditorConfig);!
!
// register the editor to the editor registry!
Granite.author.editor.register('textimage', new Granite.editor.TextImageEditor());!
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 49
Creating a layer
- Important objects: layerManager, overlayManager, persistence
- Build-in layers: Edit, Preview, Annotation, Developer, Target
- Change the view and actions
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 50
var MyLayer = function () {!
// Call super constructor!
this.constructor.prototype.constructor.call(this, "MyLayer", "coral-Icon--bug");!
};!
!
MyLayer.prototype = new author.Layer();!
!
!
MyLayer.prototype.setUp = function () {!
// allow user interaction with the iframe content (e.g., click on links)!
author.ContentFrame.showFullScreenMask(false);!
!
// Close the sidepanel!
author.SidePanel.close();!
};!
!
MyLayer.prototype.tearDown = function () {!
// prevent user interaction with the iframe content (e.g., click on links)!
author.ContentFrame.showFullScreenMask(true);!
};!
!
// register at the manager!
author.layerManager.registerLayer(new MyLayer());!
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 51
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
- Adding a new asset group
52
Assetfinder
- Handling the Drag&Drop 

Granite.author.dropController
- Handling the Persistence

Granite.author.edit.actions or

Granite.author.persistence
- Handling the rendering

Granite.author.ui.assetFinder
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 53
Resources
Upcoming resources on Package Share
- Sample packages
- CRXDE Lite extension tool
- Dialog conversion tool
!
Extension points currently being documented
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 54
Questions & Comments?

Weitere ähnliche Inhalte

Was ist angesagt?

Grafana overview deck - Tech - 2023 May v1.pdf
Grafana overview deck  - Tech - 2023 May v1.pdfGrafana overview deck  - Tech - 2023 May v1.pdf
Grafana overview deck - Tech - 2023 May v1.pdf
BillySin5
 
Millions quotes per second in pure java
Millions quotes per second in pure javaMillions quotes per second in pure java
Millions quotes per second in pure java
Roman Elizarov
 
AWS KMS를 활용하여 안전한 AWS 환경을 구축하기 위한 전략::임기성::AWS Summit Seoul 2018
AWS KMS를 활용하여 안전한 AWS 환경을 구축하기 위한 전략::임기성::AWS Summit Seoul 2018AWS KMS를 활용하여 안전한 AWS 환경을 구축하기 위한 전략::임기성::AWS Summit Seoul 2018
AWS KMS를 활용하여 안전한 AWS 환경을 구축하기 위한 전략::임기성::AWS Summit Seoul 2018
Amazon Web Services Korea
 

Was ist angesagt? (20)

Grafana overview deck - Tech - 2023 May v1.pdf
Grafana overview deck  - Tech - 2023 May v1.pdfGrafana overview deck  - Tech - 2023 May v1.pdf
Grafana overview deck - Tech - 2023 May v1.pdf
 
Pixel tags and tag management
Pixel tags and tag managementPixel tags and tag management
Pixel tags and tag management
 
GraphQL as an alternative approach to REST (as presented at Java2Days/CodeMon...
GraphQL as an alternative approach to REST (as presented at Java2Days/CodeMon...GraphQL as an alternative approach to REST (as presented at Java2Days/CodeMon...
GraphQL as an alternative approach to REST (as presented at Java2Days/CodeMon...
 
Aws glue를 통한 손쉬운 데이터 전처리 작업하기
Aws glue를 통한 손쉬운 데이터 전처리 작업하기Aws glue를 통한 손쉬운 데이터 전처리 작업하기
Aws glue를 통한 손쉬운 데이터 전처리 작업하기
 
Adobe analytics & Visitor cross-device identification
Adobe analytics & Visitor cross-device identificationAdobe analytics & Visitor cross-device identification
Adobe analytics & Visitor cross-device identification
 
How encryption works in AWS: What assurances do you have that unauthorized us...
How encryption works in AWS: What assurances do you have that unauthorized us...How encryption works in AWS: What assurances do you have that unauthorized us...
How encryption works in AWS: What assurances do you have that unauthorized us...
 
Neptune webinar AWS
Neptune webinar AWS Neptune webinar AWS
Neptune webinar AWS
 
Whole Site Delivery with Amazon CloudFront
Whole Site Delivery with Amazon CloudFrontWhole Site Delivery with Amazon CloudFront
Whole Site Delivery with Amazon CloudFront
 
AWS와 함께 하는 클라우드 컴퓨팅 - 홍민우 AWS 매니저
AWS와 함께 하는 클라우드 컴퓨팅 - 홍민우 AWS 매니저AWS와 함께 하는 클라우드 컴퓨팅 - 홍민우 AWS 매니저
AWS와 함께 하는 클라우드 컴퓨팅 - 홍민우 AWS 매니저
 
Introduction to GraphQL
Introduction to GraphQLIntroduction to GraphQL
Introduction to GraphQL
 
A project report on customers attitude towards hdfc standard life insurance
A project report on customers attitude towards hdfc standard life insuranceA project report on customers attitude towards hdfc standard life insurance
A project report on customers attitude towards hdfc standard life insurance
 
Amazon Redshift의 이해와 활용 (김용우) - AWS DB Day
Amazon Redshift의 이해와 활용 (김용우) - AWS DB DayAmazon Redshift의 이해와 활용 (김용우) - AWS DB Day
Amazon Redshift의 이해와 활용 (김용우) - AWS DB Day
 
Ask the expert AEM Assets best practices 092016
Ask the expert  AEM Assets best practices 092016Ask the expert  AEM Assets best practices 092016
Ask the expert AEM Assets best practices 092016
 
Millions quotes per second in pure java
Millions quotes per second in pure javaMillions quotes per second in pure java
Millions quotes per second in pure java
 
현대백화점 리테일테크랩과 AWS Prototyping 팀 개발자가 들려주는 인공 지능 무인 스토어 개발 여정 - 최권열 AWS 프로토타이핑...
현대백화점 리테일테크랩과 AWS Prototyping 팀 개발자가 들려주는 인공 지능 무인 스토어 개발 여정 - 최권열 AWS 프로토타이핑...현대백화점 리테일테크랩과 AWS Prototyping 팀 개발자가 들려주는 인공 지능 무인 스토어 개발 여정 - 최권열 AWS 프로토타이핑...
현대백화점 리테일테크랩과 AWS Prototyping 팀 개발자가 들려주는 인공 지능 무인 스토어 개발 여정 - 최권열 AWS 프로토타이핑...
 
Amazon Personalize 소개 (+ 실습 구성)::김영진, 솔루션즈 아키텍트, AWS::AWS AIML 스페셜 웨비나
Amazon Personalize 소개 (+ 실습 구성)::김영진, 솔루션즈 아키텍트, AWS::AWS AIML 스페셜 웨비나Amazon Personalize 소개 (+ 실습 구성)::김영진, 솔루션즈 아키텍트, AWS::AWS AIML 스페셜 웨비나
Amazon Personalize 소개 (+ 실습 구성)::김영진, 솔루션즈 아키텍트, AWS::AWS AIML 스페셜 웨비나
 
SAS Insurance Analytics Architecture
SAS Insurance Analytics ArchitectureSAS Insurance Analytics Architecture
SAS Insurance Analytics Architecture
 
2016 Digital Marketing Checklist
2016 Digital Marketing Checklist2016 Digital Marketing Checklist
2016 Digital Marketing Checklist
 
AWS KMS를 활용하여 안전한 AWS 환경을 구축하기 위한 전략::임기성::AWS Summit Seoul 2018
AWS KMS를 활용하여 안전한 AWS 환경을 구축하기 위한 전략::임기성::AWS Summit Seoul 2018AWS KMS를 활용하여 안전한 AWS 환경을 구축하기 위한 전략::임기성::AWS Summit Seoul 2018
AWS KMS를 활용하여 안전한 AWS 환경을 구축하기 위한 전략::임기성::AWS Summit Seoul 2018
 
Building Modern APIs with GraphQL
Building Modern APIs with GraphQLBuilding Modern APIs with GraphQL
Building Modern APIs with GraphQL
 

Andere mochten auch

User interface customization for aem6 circuit
User interface customization for aem6 circuitUser interface customization for aem6 circuit
User interface customization for aem6 circuit
Damien Antipa
 
Introduction to Marketing Cloud UI, Adobe Summit 2014
Introduction to Marketing Cloud UI, Adobe Summit 2014Introduction to Marketing Cloud UI, Adobe Summit 2014
Introduction to Marketing Cloud UI, Adobe Summit 2014
Damien Antipa
 
New Repository in AEM 6 by Michael Marth
New Repository in AEM 6 by Michael MarthNew Repository in AEM 6 by Michael Marth
New Repository in AEM 6 by Michael Marth
AEM HUB
 
Adobe AEM(6.0-6.1)_AEM Forms(6.1-6.2)_Developer_KrishnaChaitanya Palla
Adobe AEM(6.0-6.1)_AEM Forms(6.1-6.2)_Developer_KrishnaChaitanya PallaAdobe AEM(6.0-6.1)_AEM Forms(6.1-6.2)_Developer_KrishnaChaitanya Palla
Adobe AEM(6.0-6.1)_AEM Forms(6.1-6.2)_Developer_KrishnaChaitanya Palla
Krishna Chaitanya Palla
 

Andere mochten auch (20)

AEM Best Practices for Component Development
AEM Best Practices for Component DevelopmentAEM Best Practices for Component Development
AEM Best Practices for Component Development
 
User interface customization for aem6 circuit
User interface customization for aem6 circuitUser interface customization for aem6 circuit
User interface customization for aem6 circuit
 
UI Customization in AEM 6.0
UI Customization in AEM 6.0UI Customization in AEM 6.0
UI Customization in AEM 6.0
 
AEM 6.0 - Author UI Customization & Features
AEM 6.0 - Author UI Customization & FeaturesAEM 6.0 - Author UI Customization & Features
AEM 6.0 - Author UI Customization & Features
 
AEM - Client Libraries
AEM - Client LibrariesAEM - Client Libraries
AEM - Client Libraries
 
REST in AEM
REST in AEMREST in AEM
REST in AEM
 
The six key steps to AEM architecture
The six key steps to AEM architectureThe six key steps to AEM architecture
The six key steps to AEM architecture
 
CIRCUIT 2015 - UI Customization in AEM 6.1
CIRCUIT 2015 - UI Customization in AEM 6.1CIRCUIT 2015 - UI Customization in AEM 6.1
CIRCUIT 2015 - UI Customization in AEM 6.1
 
AEM 6.0 Touch-optimized UI
AEM 6.0 Touch-optimized UIAEM 6.0 Touch-optimized UI
AEM 6.0 Touch-optimized UI
 
Introduction to Marketing Cloud UI, Adobe Summit 2014
Introduction to Marketing Cloud UI, Adobe Summit 2014Introduction to Marketing Cloud UI, Adobe Summit 2014
Introduction to Marketing Cloud UI, Adobe Summit 2014
 
(Re)discover your AEM
(Re)discover your AEM(Re)discover your AEM
(Re)discover your AEM
 
Adobe AEM CQ5 - Developer Introduction
Adobe AEM CQ5 - Developer IntroductionAdobe AEM CQ5 - Developer Introduction
Adobe AEM CQ5 - Developer Introduction
 
Introduction to Sightly and Sling Models
Introduction to Sightly and Sling ModelsIntroduction to Sightly and Sling Models
Introduction to Sightly and Sling Models
 
AEM (CQ) Dispatcher Security and CDN+Browser Caching
AEM (CQ) Dispatcher Security and CDN+Browser CachingAEM (CQ) Dispatcher Security and CDN+Browser Caching
AEM (CQ) Dispatcher Security and CDN+Browser Caching
 
Master Chef class: learn how to quickly cook delightful CQ/AEM infrastructures
Master Chef class: learn how to quickly cook delightful CQ/AEM infrastructuresMaster Chef class: learn how to quickly cook delightful CQ/AEM infrastructures
Master Chef class: learn how to quickly cook delightful CQ/AEM infrastructures
 
Adobe AEM Commerce with hybris
Adobe AEM Commerce with hybrisAdobe AEM Commerce with hybris
Adobe AEM Commerce with hybris
 
New Repository in AEM 6 by Michael Marth
New Repository in AEM 6 by Michael MarthNew Repository in AEM 6 by Michael Marth
New Repository in AEM 6 by Michael Marth
 
Touching the AEM component dialog by Mateusz Chromiński
Touching the AEM component dialog by Mateusz ChromińskiTouching the AEM component dialog by Mateusz Chromiński
Touching the AEM component dialog by Mateusz Chromiński
 
Building Quality into the AEM Publication Workflow with Active Standards by D...
Building Quality into the AEM Publication Workflow with Active Standards by D...Building Quality into the AEM Publication Workflow with Active Standards by D...
Building Quality into the AEM Publication Workflow with Active Standards by D...
 
Adobe AEM(6.0-6.1)_AEM Forms(6.1-6.2)_Developer_KrishnaChaitanya Palla
Adobe AEM(6.0-6.1)_AEM Forms(6.1-6.2)_Developer_KrishnaChaitanya PallaAdobe AEM(6.0-6.1)_AEM Forms(6.1-6.2)_Developer_KrishnaChaitanya Palla
Adobe AEM(6.0-6.1)_AEM Forms(6.1-6.2)_Developer_KrishnaChaitanya Palla
 

Ähnlich wie User Interface customization for AEM 6

Build single page applications using AngularJS on AEM
Build single page applications using AngularJS on AEMBuild single page applications using AngularJS on AEM
Build single page applications using AngularJS on AEM
connectwebex
 

Ähnlich wie User Interface customization for AEM 6 (20)

Using Edge Animate to Create a Reusable Component Set
Using Edge Animate to Create a Reusable Component SetUsing Edge Animate to Create a Reusable Component Set
Using Edge Animate to Create a Reusable Component Set
 
Open Architecture in the Adobe Marketing Cloud - Summit 2014
Open Architecture in the Adobe Marketing Cloud - Summit 2014Open Architecture in the Adobe Marketing Cloud - Summit 2014
Open Architecture in the Adobe Marketing Cloud - Summit 2014
 
CODE BLUE 2014 : Persisted: The active use and exploitation of Microsoft's Ap...
CODE BLUE 2014 : Persisted: The active use and exploitation of Microsoft's Ap...CODE BLUE 2014 : Persisted: The active use and exploitation of Microsoft's Ap...
CODE BLUE 2014 : Persisted: The active use and exploitation of Microsoft's Ap...
 
ColdFusion 11 Overview - CFSummit 2013
ColdFusion 11 Overview - CFSummit 2013ColdFusion 11 Overview - CFSummit 2013
ColdFusion 11 Overview - CFSummit 2013
 
IMMERSE'16 Intro to Adobe Experience Manager & Adobe Marketing Cloud
IMMERSE'16 Intro to Adobe Experience Manager & Adobe Marketing CloudIMMERSE'16 Intro to Adobe Experience Manager & Adobe Marketing Cloud
IMMERSE'16 Intro to Adobe Experience Manager & Adobe Marketing Cloud
 
Umbraco Cape Town Meetup Presentation
Umbraco Cape Town Meetup PresentationUmbraco Cape Town Meetup Presentation
Umbraco Cape Town Meetup Presentation
 
Sightly_techInsight
Sightly_techInsightSightly_techInsight
Sightly_techInsight
 
What's new in designer
What's new in designerWhat's new in designer
What's new in designer
 
Build single page applications using AngularJS on AEM
Build single page applications using AngularJS on AEMBuild single page applications using AngularJS on AEM
Build single page applications using AngularJS on AEM
 
Build single page applications using AngularJS on AEM
Build single page applications using AngularJS on AEMBuild single page applications using AngularJS on AEM
Build single page applications using AngularJS on AEM
 
Modernizing Adobe Experience Manager (AEM)
Modernizing Adobe Experience Manager (AEM)Modernizing Adobe Experience Manager (AEM)
Modernizing Adobe Experience Manager (AEM)
 
Adobe Stock Integration community project
Adobe Stock Integration community projectAdobe Stock Integration community project
Adobe Stock Integration community project
 
SPA Editor - Adobe Experience Manager Sites
SPA Editor - Adobe Experience Manager SitesSPA Editor - Adobe Experience Manager Sites
SPA Editor - Adobe Experience Manager Sites
 
Dreamweaver CS6, jQuery, PhoneGap, mobile design
Dreamweaver CS6, jQuery, PhoneGap, mobile designDreamweaver CS6, jQuery, PhoneGap, mobile design
Dreamweaver CS6, jQuery, PhoneGap, mobile design
 
Responsive Websites and Grid-Based Layouts by Gabriel Walt
Responsive Websites and Grid-Based Layouts by Gabriel Walt Responsive Websites and Grid-Based Layouts by Gabriel Walt
Responsive Websites and Grid-Based Layouts by Gabriel Walt
 
Android Development with Flash Platform
Android Development with Flash PlatformAndroid Development with Flash Platform
Android Development with Flash Platform
 
EVOLVE'15 | Enhance | Bob O'Conner & Kevin Nenning | Capturing Existing Cont...
EVOLVE'15 | Enhance |  Bob O'Conner & Kevin Nenning | Capturing Existing Cont...EVOLVE'15 | Enhance |  Bob O'Conner & Kevin Nenning | Capturing Existing Cont...
EVOLVE'15 | Enhance | Bob O'Conner & Kevin Nenning | Capturing Existing Cont...
 
AEM Evernote Sync
AEM Evernote SyncAEM Evernote Sync
AEM Evernote Sync
 
Sst hackathon express
Sst hackathon expressSst hackathon express
Sst hackathon express
 
Securing Containers - Sathyajit Bhat - Adobe
Securing Containers - Sathyajit Bhat - AdobeSecuring Containers - Sathyajit Bhat - Adobe
Securing Containers - Sathyajit Bhat - Adobe
 

Kürzlich hochgeladen

introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
VishalKumarJha10
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 

Kürzlich hochgeladen (20)

Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
BUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptxBUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptx
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
 
LEVEL 5 - SESSION 1 2023 (1).pptx - PDF 123456
LEVEL 5   - SESSION 1 2023 (1).pptx - PDF 123456LEVEL 5   - SESSION 1 2023 (1).pptx - PDF 123456
LEVEL 5 - SESSION 1 2023 (1).pptx - PDF 123456
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 

User Interface customization for AEM 6

  • 1. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 1 User Interface customization for AEM 6 CQ Gems May 7th, 2014 ! Gilles Knobloch Damien Antipa
  • 2. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 2 working on AEM/Granite/Coral and wherever Javascript is used 4 years of AEM experience working on AEM/Granite/Coral architect of the Sling Resource Merger Damien Antipa, Senior UX Engineer Gilles Knobloch, Engineering Manager @visiongeist @gilknob
  • 3. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 3 Introduction New UI: Mobile first, Desktop in mind
  • 4. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 4 Introduction - Granite UI introduced in 5.6.0 - Now spread across multiple UIs of the product - UI framework provides base components ! Challenges Extensible technology for partners/customers ! Goal of the session Understand how to extend admin screens and page authoring
  • 5. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 5 Extending the Administration pages - Extend existing admin screen - Create a custom admin screen - Sling Resource Merger - Includes
  • 6. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 6 Sling Resource Merger https://issues.apache.org/jira/browse/SLING-2986 ! - Custom resource provider - Overlays of resources using resource resolver search paths - Working as a diff - Custom Sling vocabulary ! Overall goal: override in /apps, never touch /libs - Guarantees upgradability - Easier for customers to debug
  • 7. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 7 Sling Resource Merger Add or override a property ! Create the corresponding property within /apps
 (the property will have priority based on Sling Resource Resolver configuration) ! Changing the type of the property is supported
  • 8. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 8 Sling Resource Merger Add or override a property
  • 9. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 9 Sling Resource Merger Delete one or more properties ! Create the corresponding node within /apps, Add sling:hideProperties property: list of properties to delete (String[]) ! * wildcard can be used to delete all the properties
  • 10. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 10 Sling Resource Merger Delete one or more properties
  • 11. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 11 Sling Resource Merger Delete a node (and its children) ! Create the corresponding node within /apps Set sling:hideResource to true (Boolean)
  • 12. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 12 Sling Resource Merger Delete a node (and its children)
  • 13. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 13 Sling Resource Merger Delete children of a node (but keep the properties of the node) ! Create the corresponding node within /apps, Add sling:hideChildren property: list of children to delete (String[]) ! * wildcard can be used to delete all the children
  • 14. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 14 Sling Resource Merger Delete children of a node
  • 15. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 15 Sling Resource Merger Reorder nodes ! Create the corresponding node within /apps Set sling:orderBefore to the name of the sibling where that node should be reordered before (String) ! TODO: support redefining the whole list of children
  • 16. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 16 Sling Resource Merger Reorder nodes
  • 17. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 17 Extend existing admin screen Sling Resource Merger is our friend! ! - Update root title for breadcrumb - Custom documentation links (sling:hideChildren, sling:orderBefore) - Additional toolbar action - Restrict Create Site to administrators (custom rendering condition) - Default layout to list view, removed toggle to card view (sling:hideResource)
  • 18. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Create a custom admin screen 18 Launches Console - Custom console - Custom menu entry - Specific actions
  • 19. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 19 Create a custom admin screen Root space for Launches console Granite UI page resource Page definition Custom components (styles, scripts, JSPs)
  • 20. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 20 Create a custom admin screen Add in navigation Extend navigation Give same ID as your console and point to it Specify location in the tree
  • 21. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 21 Create a custom admin screen Custom action bar - Build your own components - Include the corresponding client libraries for custom actions
  • 22. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 22 Granite UI Includes granite/ui/components/foundation/include ! - Specify path to include Can be used to extend component dialogs
  • 23. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 23 The new Page Authoring 
 in AEM 6.0
  • 24. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 24
  • 25. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 25 Customer Page = ContentFrame Editing Features = EditorFrame
  • 26. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 26 Layer switcher Layer switcher
  • 27. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 27 These are Overlays
  • 28. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 28 Sidepanel AssetGroups
  • 29. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 29 Components
  • 30. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 30 Toolbar
  • 31. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 31 What is an Editable? - is an instance of a component on a page - allows access to the page’s DOM and its overlay - is aware of its JCR path and edit configuration - all Editable’s of the current page are accessible through Granite.author.store - Constructor: Granite.author.Editable - inherits from Granite.author.Inspectable
  • 32. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 32 What is a layer? - A layer is an independent bundle of functionality which can be activated in order to manipulate or interact with the page - What can I do with a layer? What ever you want. 
 (but please cleanup:-)
  • 33. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. - Toolbar action - Inplace Editor - Custom Layer - Page action Extending the Page Authoring - Assetfinder Group
  • 34. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 34 Before we start… - Javascript Namespace: Granite.author - Overlays are managed by overlayManager - ClientLib category hook: cq.authoring.editor.hook - Current page’s Editables are in Granite.author.store - A lot of page data is in Granite.author.page
  • 35. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 35 Custom toolbar action
  • 36. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Still working: Adding custom actions to components 36
  • 37. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 37 Still working: Adding custom actions to components
  • 38. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 38 New: Manipulating the toolbar with Javascript - understand eventing in the authoring channel - use global objects - toolbar entry definition - component independent actions
  • 39. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 39 'CUSTOM': {! icon: 'coral-Icon--gear',! text: Granite.I18n.get('Custom'),! handler: function (editable, param, target) {! alert('my custom action');! // do not close toolbar! return false;! },! condition: function (editable) {! // optional condition to show action! return !!editable.config.orderable;! },! render: function (dom) {! // custom rendering! return dom;! },! // could be executed when only one editable is selected! // default: false! isNonMulti: true ! }!
  • 40. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 40 Adding a screenshot functionality
  • 41. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Custom page action 41 Add an action to page authoring toolbar Example: a button to translate the page
  • 42. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 42 Custom page action - define as a header action - cq-Translate-action used as jQuery selector new action added under /apps extension to cq.authoring.editor client library
  • 43. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 43 Inplace Editors
  • 44. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 44 Create an Inplace Editor
  • 45. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 45 var MyEditor = function () {! ! };! ! MyEditor.prototype.setUp = function (editable) {! ! };! ! MyEditor.prototype.tearDown = function (editable) {! ! };! ! Granite.author.editor.register(‘myeditor', new MyEditor());!
  • 46. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 46 How we created the title editor - manipulate the Editable’s DOM
  • 47. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 47 Create a Hybrid Editor
  • 48. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 48 var textImageEditorConfig = {! editors: [! {! editorType: "text",! imageClass: "coral-Icon coral-Icon--text coral-Icon--sizeL"! },! {! editorType: "image",! imageClass: "coral-Icon coral-Icon--image coral-Icon--sizeL"! }! ]! };! ! Granite.author.editor.TextImageEditor = function () {! };! ! Granite.author.editor.TextImageEditor.prototype = ! new Granite.editor.HybridEditor(textImageEditorConfig);! ! // register the editor to the editor registry! Granite.author.editor.register('textimage', new Granite.editor.TextImageEditor());!
  • 49. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 49 Creating a layer - Important objects: layerManager, overlayManager, persistence - Build-in layers: Edit, Preview, Annotation, Developer, Target - Change the view and actions
  • 50. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 50 var MyLayer = function () {! // Call super constructor! this.constructor.prototype.constructor.call(this, "MyLayer", "coral-Icon--bug");! };! ! MyLayer.prototype = new author.Layer();! ! ! MyLayer.prototype.setUp = function () {! // allow user interaction with the iframe content (e.g., click on links)! author.ContentFrame.showFullScreenMask(false);! ! // Close the sidepanel! author.SidePanel.close();! };! ! MyLayer.prototype.tearDown = function () {! // prevent user interaction with the iframe content (e.g., click on links)! author.ContentFrame.showFullScreenMask(true);! };! ! // register at the manager! author.layerManager.registerLayer(new MyLayer());!
  • 51. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 51
  • 52. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. - Adding a new asset group 52 Assetfinder - Handling the Drag&Drop 
 Granite.author.dropController - Handling the Persistence
 Granite.author.edit.actions or
 Granite.author.persistence - Handling the rendering
 Granite.author.ui.assetFinder
  • 53. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 53 Resources Upcoming resources on Package Share - Sample packages - CRXDE Lite extension tool - Dialog conversion tool ! Extension points currently being documented
  • 54. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 54 Questions & Comments?