SlideShare a Scribd company logo
CQ5/WEM Developer Tricks
      Gabriel Walt




© 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
CQ5/WEM Developer Tricks

  Quick intro to a few mostly unknown new features:
  1.         Front-End Optimization
  2.         Mobile Detection
  3.         Mobile Content Synchronization




© 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   2
1.  Front-End Optimization




                 h p://www. ickr.com/photos/amorsiko/3355940427/
© 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   3
1.  Front-End Optimization




                 h p://www. ickr.com/photos/amorsiko/3355940427/
© 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   4
Front-End is about



                                                                                 CQ5 structures well HTML:
  §    HTML = Markup + Content                                                  §  under the content node

                                                                                 §  under the component node

  §    CSS               = Layout
                                                                                 Client Libraries
  §    JS                = Behavior




© 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   5
Client Libraries

  Each project usually has:
  §    Various CSS & JS libraries                                               Framework

                                                                                 Library A
  §    Express relations between client libs
        §    dependencies                                                       Library B

        §    embed                                                              Component A

  Various optimizations                                                          Component B

  §    concatenated                                                             Component C
  §    mini ed
                                                                                 Site Design
  §    gzipped
                                                                                 Publish ClientLib



© 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   6
Client Libraries



                       /                                                                      Framework

                                        etc                                                   Library A

                                                          clientlibs                          Library B

                                                          designs                             Component A

                                                                             site             Component B

                                        apps                                                  Component C

                                                          site                                Site Design

                                                                             components       Publish ClientLib



© 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.                7
Client Libraries




                                                                             Demo




© 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.      8
Client Libraries – Cheat Sheet



  List ClientLib dependencies and embeds:
  h p://SERVER/libs/cq/ui/content/dumplibs.html




  Include JS and CSS in separate les:
  h p://SERVER/PAGE.html?debugClientLibs=true




  Show Firebug console:
  h p://SERVER/PAGE.html?debugConsole=true




© 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   9
2.  Mobile Detection




                 h p://www. ickr.com/photos/mikecogh/4520411836/
© 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   10
Why?

  We are facing:
  §          ousands of devices – with varying capabilities
  §    Rare so ware updates – still, for most devices


  Unequal capabilities
  §    Screen size                                                          Serve a different design
                                                                                                             Need to abstract
  §    JS support
                                                                                                             away capabilities
  §    CSS support                                                          Server-side feature detection
  §    Image support




© 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.           11
Device Capabilities Abstraction




  Wireless Universal Resource FiLe
  §    Con guration le for all known mobile devices on earth
  §    Over 500 capabilities for each device that are broken up into 30 groups
  §    Used by many others, such as Facebook
  §    is Free and Open Source So ware – h p://wur .sourceforge.net/




© 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   12
Mobile Page Rendering

                                                                             HTML Renditions    Content in Repository

                      HTTP request
                                                                       CQ5     Default Site        Master Content


                                                                                                        Live Copy
                                                                             Touch Phone Site

                                                                                                   Mobile Content
       Device Capabilities (from WURFL)
       §    Supports JS                                                     Smart Phone Site    Different avors of same content
       §    Supports CSS
       §    Supports Image
       §    Exact Screen Size
       §    Supports Device Rotation
       §    Etc.



© 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
Mobile Page Rendering

                                                                                    Web Path                       Node Path
                                                                             /site/news.html                /content/site/news
                      HTTP request
                                                                       CQ5         Default Site               Master Content


                                                                             /site-mobile/news.touch.html          Live Copy
                                                                              Touch Phone Site
                                                                                                            /content/site-mobile/news

                                                                                                              Mobile Content
       Device Capabilities (from WURFL)                                      /site-mobile/news.smart.html

       §    Supports JS                                                      Smart Phone Site              Different avors of same content
       §    Supports CSS
       §    Supports Image
       §    Exact Screen Size
       §    Supports Device Rotation
       §    Etc.



© 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
Mobile Page Rendering with Dispatchers




                               Visit site with                                                  Dispatcher forwards     Lookup device
                               mobile browser                                               request to publish server   list and evaluate
                                                                                                                        device group

                                                                                                  Sends back URL to

                                                                             Dispatchers           optimized version
                                                                                                                               CQ5
                                Request mobile                                                 Render device-group
                                optimized version                                                     speci c page




© 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.             15
Mobile Page Rendering




                                                                             Demo




© 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.      16
Improving the default solution

  Server A ention Span




           h p://xkcd.com/869/




© 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   17
e default solution




© 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   18
e default solution, improved




  We need JavaScript to improve it further!

© 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   19
Adding a “check” selector




© 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   20
e full solution




© 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   21
3.  Mobile Content Synchronization




           h p://www. ickr.com/photos/clemmac/3571171997/
© 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   22
What it does


                               HTTP request with timestamp of latest sync

                                                                                             CQ5
                               Redirects client to cache URL

                                                                                                     If needed:
                                                       Req                                           generates content package
                                                          uest
                                                                       s co                          and stores it in cache
               Unpacks content                                               nten
                                                                                 t pa
               and merges it with                                                    ckag
                                                                                         e
               previous content                                                              Cache
       App Content, can be:                                                                      Content changes from
                                                                                                 time Y to time Z
       §    Web UI: HTML+CSS+JS
             displayed in web frame                                                              Content changes from
                                                                                                 time X to time Z
       §    Native UI: JSON or XML
             parsed and displayed                                                                Content changes from
                                                                                                 time X to time Y
             using native widgets




© 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
Mobile Content Synchronization – Bene ts

  §    Optimized for low bandwidth consumption
        §    Only diff is transferred
        §    Content is ZIPed

  §    Client Technology Agnostic:
        §    Requires HTTP client
        §    Requires ZIP library

  §    Reuse of content for mobile app
  §    Can synchronize any kind of content: HTML, XML, JSON, Images, PDF, les, …
  §    App can be:
        §    Web UI: HTML+CSS+JS displayed in web frame
        §    Native UI: JSON or XML parsed and displayed using native widgets


© 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   24
Mobile Content Synchronization




                                                                             Demo




© 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.      25
Mobile Content Synchronization – Cheat Sheet

  Con guration:
  §    copy – Copy les and folders
        parameters: path
  §    content – Render content using standard Sling request processing
        parameters: path, extension, selector
  §    clientlib – Package a Javascript or CSS client library
        parameters: path, extension
  §    assets – Collect original renditions of assets
        parameters: path
  §    pages – Render CQ pages and collect referenced assets
        parameters: path, extension, selector, deep


  Console to update the content of the ContentSync packages:
  h p://SERVER/libs/cq/contentsync/content/console.html




  Documentation:
  h p://dev.day.com/docs/en/cq/current/developing/mobile/contentsync.html


© 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   26
© 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.

More Related Content

What's hot (20)

PDF
Adobe Experience Manager Core Components
Gabriel Walt
 
PDF
Responsive Websites and Grid-Based Layouts by Gabriel Walt
AEM HUB
 
PDF
Build single page applications using AngularJS on AEM
connectwebex
 
PDF
12 hot features to engage and save time with aem 6.2
Tricode (part of Dept)
 
PDF
AEM 6.1 User Interface Customization
Christian Meyer
 
PPTX
Bridging the Gap: Single-Page Apps and AEM
rbl002
 
PPTX
AEM and Sling
Lo Ki
 
PPTX
Build single page applications using AngularJS on AEM
AdobeMarketingCloud
 
PPTX
Dynamic components using SPA concepts in AEM
Bojana Popovska
 
PDF
SPA Editing with Sling to the rescue - adaptTo() 2021
Hanish Bansal
 
DOC
Alexander Zeng
Alex Zeng
 
PDF
Professional Frontend Engineering
Nate Koechley
 
PPTX
UI Customization in AEM 6.0
Gilles Knobloch
 
PDF
Anatomy of an HTML 5 mobile web app
Ivano Malavolta
 
PDF
HTML5 and the dawn of rich mobile web applications
James Pearce
 
PPT
Seamless Integrations between WebCenter Content, Site Studio, and WebCenter S...
Brian Huff
 
PDF
JavaCro'14 - Vaadin web application integration for Enterprise systems – Pete...
HUJAK - Hrvatska udruga Java korisnika / Croatian Java User Association
 
PDF
JCR, Sling or AEM? Which API should I use and when?
connectwebex
 
PDF
Frontend APIs powering fast paced product iterations
Karthik Ramgopal
 
PDF
HTML5: the new frontier of the web
Ivano Malavolta
 
Adobe Experience Manager Core Components
Gabriel Walt
 
Responsive Websites and Grid-Based Layouts by Gabriel Walt
AEM HUB
 
Build single page applications using AngularJS on AEM
connectwebex
 
12 hot features to engage and save time with aem 6.2
Tricode (part of Dept)
 
AEM 6.1 User Interface Customization
Christian Meyer
 
Bridging the Gap: Single-Page Apps and AEM
rbl002
 
AEM and Sling
Lo Ki
 
Build single page applications using AngularJS on AEM
AdobeMarketingCloud
 
Dynamic components using SPA concepts in AEM
Bojana Popovska
 
SPA Editing with Sling to the rescue - adaptTo() 2021
Hanish Bansal
 
Alexander Zeng
Alex Zeng
 
Professional Frontend Engineering
Nate Koechley
 
UI Customization in AEM 6.0
Gilles Knobloch
 
Anatomy of an HTML 5 mobile web app
Ivano Malavolta
 
HTML5 and the dawn of rich mobile web applications
James Pearce
 
Seamless Integrations between WebCenter Content, Site Studio, and WebCenter S...
Brian Huff
 
JavaCro'14 - Vaadin web application integration for Enterprise systems – Pete...
HUJAK - Hrvatska udruga Java korisnika / Croatian Java User Association
 
JCR, Sling or AEM? Which API should I use and when?
connectwebex
 
Frontend APIs powering fast paced product iterations
Karthik Ramgopal
 
HTML5: the new frontier of the web
Ivano Malavolta
 

Similar to Three WEM Dev Tricks (20)

PDF
Android Development with Flash Platform
Mihai Corlan
 
PDF
Flex 4.5 and mobile development
Michael Chaize
 
PDF
Building Content Applications with JCR and OSGi
Cédric Hüsler
 
PDF
Develop multi-screen applications with Flex
Codemotion
 
PDF
Develop mobile applications with Flex
ConFoo
 
PDF
Flex mobile for JUG
Michael Chaize
 
PPT
Integrating ADF Mobile with WebCenter
Brian Huff
 
KEY
Real-world Dojo Mobile
Andrew Ferrier
 
PDF
IBM Worklight - Technical Overview
IIC_Barcelona
 
PPTX
WebBee rapid web app development teck stack
ALDAN3
 
PDF
Worklight Overview
Andrew Ferrier
 
PDF
Adobe AIR Mobile development for Android and PlayBook
Mihai Corlan
 
PDF
Xebia adobe flash mobile applications
Michael Chaize
 
PDF
Duncan hallas netbiscuits mobile publishing masterclass
James Cameron
 
PDF
FATC UK - Real time collaborative Flex apps
Michael Chaize
 
PDF
IBM Mobile Foundation POT - Part 2 introduction to application development wi...
AIP Foundation
 
PDF
Managing Omnichannel Experiences with Adobe Experience Manager (AEM)
Gabriel Walt
 
PDF
Flex For Java Architects Ledroff Breizh Jug V Blog Cc
François Le Droff
 
PDF
MMT 28: Adobe »Edge to the Flash«
MMT - Multimediatreff
 
PPSX
Developing Downloadable Mobile Apps Using HTML5 and PhoneGap
Worklight
 
Android Development with Flash Platform
Mihai Corlan
 
Flex 4.5 and mobile development
Michael Chaize
 
Building Content Applications with JCR and OSGi
Cédric Hüsler
 
Develop multi-screen applications with Flex
Codemotion
 
Develop mobile applications with Flex
ConFoo
 
Flex mobile for JUG
Michael Chaize
 
Integrating ADF Mobile with WebCenter
Brian Huff
 
Real-world Dojo Mobile
Andrew Ferrier
 
IBM Worklight - Technical Overview
IIC_Barcelona
 
WebBee rapid web app development teck stack
ALDAN3
 
Worklight Overview
Andrew Ferrier
 
Adobe AIR Mobile development for Android and PlayBook
Mihai Corlan
 
Xebia adobe flash mobile applications
Michael Chaize
 
Duncan hallas netbiscuits mobile publishing masterclass
James Cameron
 
FATC UK - Real time collaborative Flex apps
Michael Chaize
 
IBM Mobile Foundation POT - Part 2 introduction to application development wi...
AIP Foundation
 
Managing Omnichannel Experiences with Adobe Experience Manager (AEM)
Gabriel Walt
 
Flex For Java Architects Ledroff Breizh Jug V Blog Cc
François Le Droff
 
MMT 28: Adobe »Edge to the Flash«
MMT - Multimediatreff
 
Developing Downloadable Mobile Apps Using HTML5 and PhoneGap
Worklight
 
Ad

Recently uploaded (20)

PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
PDF
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
PDF
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PPT
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Ad

Three WEM Dev Tricks

  • 1. CQ5/WEM Developer Tricks Gabriel Walt © 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 2. CQ5/WEM Developer Tricks Quick intro to a few mostly unknown new features: 1.  Front-End Optimization 2.  Mobile Detection 3.  Mobile Content Synchronization © 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 2
  • 3. 1.  Front-End Optimization h p://www. ickr.com/photos/amorsiko/3355940427/ © 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 3
  • 4. 1.  Front-End Optimization h p://www. ickr.com/photos/amorsiko/3355940427/ © 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 4
  • 5. Front-End is about CQ5 structures well HTML: §  HTML = Markup + Content §  under the content node §  under the component node §  CSS = Layout Client Libraries §  JS = Behavior © 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 5
  • 6. Client Libraries Each project usually has: §  Various CSS & JS libraries Framework Library A §  Express relations between client libs §  dependencies Library B §  embed Component A Various optimizations Component B §  concatenated Component C §  mini ed Site Design §  gzipped Publish ClientLib © 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 6
  • 7. Client Libraries / Framework etc Library A clientlibs Library B designs Component A site Component B apps Component C site Site Design components Publish ClientLib © 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 7
  • 8. Client Libraries Demo © 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 8
  • 9. Client Libraries – Cheat Sheet List ClientLib dependencies and embeds: h p://SERVER/libs/cq/ui/content/dumplibs.html Include JS and CSS in separate les: h p://SERVER/PAGE.html?debugClientLibs=true Show Firebug console: h p://SERVER/PAGE.html?debugConsole=true © 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 9
  • 10. 2.  Mobile Detection h p://www. ickr.com/photos/mikecogh/4520411836/ © 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 10
  • 11. Why? We are facing: §  ousands of devices – with varying capabilities §  Rare so ware updates – still, for most devices Unequal capabilities §  Screen size Serve a different design Need to abstract §  JS support away capabilities §  CSS support Server-side feature detection §  Image support © 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 11
  • 12. Device Capabilities Abstraction Wireless Universal Resource FiLe §  Con guration le for all known mobile devices on earth §  Over 500 capabilities for each device that are broken up into 30 groups §  Used by many others, such as Facebook §  is Free and Open Source So ware – h p://wur .sourceforge.net/ © 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 12
  • 13. Mobile Page Rendering HTML Renditions Content in Repository HTTP request CQ5 Default Site Master Content Live Copy Touch Phone Site Mobile Content Device Capabilities (from WURFL) §  Supports JS Smart Phone Site Different avors of same content §  Supports CSS §  Supports Image §  Exact Screen Size §  Supports Device Rotation §  Etc. © 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 14. Mobile Page Rendering Web Path Node Path /site/news.html /content/site/news HTTP request CQ5 Default Site Master Content /site-mobile/news.touch.html Live Copy Touch Phone Site /content/site-mobile/news Mobile Content Device Capabilities (from WURFL) /site-mobile/news.smart.html §  Supports JS Smart Phone Site Different avors of same content §  Supports CSS §  Supports Image §  Exact Screen Size §  Supports Device Rotation §  Etc. © 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 15. Mobile Page Rendering with Dispatchers Visit site with Dispatcher forwards Lookup device mobile browser request to publish server list and evaluate device group Sends back URL to Dispatchers optimized version CQ5 Request mobile Render device-group optimized version speci c page © 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 15
  • 16. Mobile Page Rendering Demo © 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 16
  • 17. Improving the default solution Server A ention Span h p://xkcd.com/869/ © 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 17
  • 18. e default solution © 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 18
  • 19. e default solution, improved We need JavaScript to improve it further! © 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 19
  • 20. Adding a “check” selector © 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 20
  • 21. e full solution © 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 21
  • 22. 3.  Mobile Content Synchronization h p://www. ickr.com/photos/clemmac/3571171997/ © 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 22
  • 23. What it does HTTP request with timestamp of latest sync CQ5 Redirects client to cache URL If needed: Req generates content package uest s co and stores it in cache Unpacks content nten t pa and merges it with ckag e previous content Cache App Content, can be: Content changes from time Y to time Z §  Web UI: HTML+CSS+JS displayed in web frame Content changes from time X to time Z §  Native UI: JSON or XML parsed and displayed Content changes from time X to time Y using native widgets © 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 24. Mobile Content Synchronization – Bene ts §  Optimized for low bandwidth consumption §  Only diff is transferred §  Content is ZIPed §  Client Technology Agnostic: §  Requires HTTP client §  Requires ZIP library §  Reuse of content for mobile app §  Can synchronize any kind of content: HTML, XML, JSON, Images, PDF, les, … §  App can be: §  Web UI: HTML+CSS+JS displayed in web frame §  Native UI: JSON or XML parsed and displayed using native widgets © 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 24
  • 25. Mobile Content Synchronization Demo © 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 25
  • 26. Mobile Content Synchronization – Cheat Sheet Con guration: §  copy – Copy les and folders parameters: path §  content – Render content using standard Sling request processing parameters: path, extension, selector §  clientlib – Package a Javascript or CSS client library parameters: path, extension §  assets – Collect original renditions of assets parameters: path §  pages – Render CQ pages and collect referenced assets parameters: path, extension, selector, deep Console to update the content of the ContentSync packages: h p://SERVER/libs/cq/contentsync/content/console.html Documentation: h p://dev.day.com/docs/en/cq/current/developing/mobile/contentsync.html © 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 26
  • 27. © 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.