SlideShare a Scribd company logo
Mobile site (in eZ
   Publish)
About me

•   Igor Vrdoljak (Netgen crew)



•   Working with eZ Publish for 8 years
•   Nowdays mostly doing PM work  but still trying to
    stay in the loop with eZ development
•   @ivrdoljak
•   igor@netgen.hr
What is so special with mobile web on eZ?




•   Nothing really
    •   More-less just a siteaccess with simplified design and big UI
        elements for fat fingers 
•   But...
    •   Devil is in the details
What are things to have in mind?




•   A few points to touch on:
    •   Content strategy and mobile site content architecture
    •   Mobile device detection
    •   Tailoring your HTML(5) / CSS for mobile browsers
    •   Using geolocation features
    •
Content

•   eZ Publish content (model) is the king!
    •   Organize your classes for content reusage
         • (Not only mobile web)

    •   “Mobile” class attributes
•   Different ways of organizing the content for mobile
    site
    •   Using the same content tree as in desktop siteaccesses
         • Google search hits work when coupled with proper device
           detection
         • Easy switching between mobile and desktop site

    •   Separate subtree for mobile site
         • When content gets too messy, on legacy installations.

    •   Mix of two above
Device detection

•   If you build it, they will come.
    •   Not really true
•   We need to redirect mobile users to right “mobile”
    pages
    •   Google result links
    •   Twitter links
    •

•   Several options available:
    •   Redirecting in Javascript
    •   Using server-side mobile detection provided by eZ Publish
    •   A little hack that improves on server-side redirection
Device detection

•   As of eZ 4.7 there is a solution for detection of mobile
    clients integrated in eZ Publish
        •   Configured in site.ini:

            DetectMobileDevice=enabled
            MobileSiteAccessURL=http://m.telx.netgen.biz/
            MobileSiteAccessList[]=m
            MobileDeviceDetectCookieTimeout=7200
            MobileDeviceFilterClass=ezpMobileDeviceRegexpFilter


       Easy to setup, but
    •       does not support switching to appropriate URL, just redirects
            to mobile homepage
Device detection

•   Hackish improvement for server-side mobile
    detection
•   Custom PHP code, called from config.php
•   Resolves the problem of redirecting between
    corresponding mobile and desktop pages
•   Rather rough on the edges but does the work 
•   Jump to code...
Client side best practices

•   Standard eZ templateing
    •   Simple, but efficient way of improving UX
    •   HTML5 markup elements, CSS3 JS...
•   Be good to your lazy front-side developers
    •   Support LESS
    •   eZ Less can be used with to preprocess CSS
         • http://www.ezless.org/

         • https://github.com/stdclass/ezless
Geolocation with eZ Find

•   Mobile users are usually... mobile
    •   Geolocation features based on ezgmaplocation attributes
    •   Example: boosting geo-tagged objects with Haversine
        distance formula (Solr 3.1) can be used to calculate distance
        between points on sphere (like Earth)
         • Distance returned as SOLR score from eZ Find

    •   GeohashHarvesine example

    ghhsin(6378000,geohash(lat,lng),geohash(lat1, lng1))
Conclusion

•   Mobile strategy is a moving target
    •   Responsive web design – one HTML to rule them all
    •   Separate mobile site – when aiming a specific context
    •   Integration with native applications via APIs
         • App Factory

         • REST APIs

•   A lot can be gained with relatively small effort
•   Be nice to your mobile users 
QA




@ivrdoljak
igor@netgen.hr

More Related Content

PDF
«The Grail: React based Isomorph apps framework»​
PDF
«Разрушаем Вавилонскую Башню WWW с помощью веб-компонент»​
PDF
«I knew there had to be a better way to build mobile app»​
PPTX
Seattle JS Meetup - Grunt EJS Static Presentation
PPTX
Prototyping Mobile Apps with NativeScript and Angular
PDF
Ember and SharePoint
PDF
Chef Overview Pecha Kucha
PPTX
Mobile gotcha
«The Grail: React based Isomorph apps framework»​
«Разрушаем Вавилонскую Башню WWW с помощью веб-компонент»​
«I knew there had to be a better way to build mobile app»​
Seattle JS Meetup - Grunt EJS Static Presentation
Prototyping Mobile Apps with NativeScript and Angular
Ember and SharePoint
Chef Overview Pecha Kucha
Mobile gotcha

What's hot (20)

PPTX
Font End Development and Drupal: Gulp, Sass, Susy, and Mappy Breakpoints
PDF
SPSNJ 2014: EmberJS & SharePoint
PDF
Domaine Driven Design - Bordeaux IO
PDF
One Neos CMS - many websites
PPT
Naki tech
PPTX
Kickstart android development with xamarin
PPT
MobileClient
KEY
LinkedIn Mobile: How do we do it?
PDF
Ohio Devfest - Visual Analysis with GCP
PPTX
Neos CMS and SEO
PDF
KEY
Portal - Lego set for app development
PPTX
PPTX
A practical approach on - How to design offline-online synchronization system
PDF
Top 10 Android Apps
PDF
Webcomponents are your frameworks best friend
PPTX
Building services for apps on a shoestring budget
PDF
Frameworks and webcomponents
PPTX
Becoming a Software Developer
Font End Development and Drupal: Gulp, Sass, Susy, and Mappy Breakpoints
SPSNJ 2014: EmberJS & SharePoint
Domaine Driven Design - Bordeaux IO
One Neos CMS - many websites
Naki tech
Kickstart android development with xamarin
MobileClient
LinkedIn Mobile: How do we do it?
Ohio Devfest - Visual Analysis with GCP
Neos CMS and SEO
Portal - Lego set for app development
A practical approach on - How to design offline-online synchronization system
Top 10 Android Apps
Webcomponents are your frameworks best friend
Building services for apps on a shoestring budget
Frameworks and webcomponents
Becoming a Software Developer
Ad

Viewers also liked (7)

PPT
VIStology: Mining the Malaysian Sopo Blogosphere
PPT
Networking
PPT
Recovery_isea_2009
PPT
Jyrie Lossenko Sverd 091007
PDF
Mobile payments Today
PDF
Getting to plan_b_a_revi
PPTX
Toward Formal Reasoning with Epistemic Policies about Information Quality i...
VIStology: Mining the Malaysian Sopo Blogosphere
Networking
Recovery_isea_2009
Jyrie Lossenko Sverd 091007
Mobile payments Today
Getting to plan_b_a_revi
Toward Formal Reasoning with Epistemic Policies about Information Quality i...
Ad

Similar to Mobile web in eZ Publish (20)

PPTX
Big Brands, Mobile SEO and You by John Shehata - #SEJSummit New York City
PDF
Siruna session at Drupalcon Paris 2009
PPTX
Mobile Web Best Practices
PDF
Drupalcamp New York 2009
PDF
Building Mobile Websites with Joomla
KEY
Why you need a mobile site
PPTX
Creating Mobile Websites with Kentico CMS 7
PPTX
Expertise In Mobile SEO
PDF
Designing and Theming Drupal for Mobile Devices
PPT
Mobile is the new Godzilla July 2011 FCIP
PPT
Drupalcamp LA Aug 2009
PDF
Floyd brad mobile_presentation
PPTX
How To Be an HTML5 Mobile Cloud Champion
PDF
Welcome to a new reality - DeepCrawl Webinar 2018
KEY
Sniffing the Mobile Context
PDF
Mobile for PHP developers
PDF
Making the web work on mobile: DeviceAtlas
PPTX
Mobile SEO (English Version)
PPTX
Kentico Technical Learning - Responsive Design with Kentico CMS 7
PPTX
Responsive Web Design Primer - NAGW 2014
Big Brands, Mobile SEO and You by John Shehata - #SEJSummit New York City
Siruna session at Drupalcon Paris 2009
Mobile Web Best Practices
Drupalcamp New York 2009
Building Mobile Websites with Joomla
Why you need a mobile site
Creating Mobile Websites with Kentico CMS 7
Expertise In Mobile SEO
Designing and Theming Drupal for Mobile Devices
Mobile is the new Godzilla July 2011 FCIP
Drupalcamp LA Aug 2009
Floyd brad mobile_presentation
How To Be an HTML5 Mobile Cloud Champion
Welcome to a new reality - DeepCrawl Webinar 2018
Sniffing the Mobile Context
Mobile for PHP developers
Making the web work on mobile: DeviceAtlas
Mobile SEO (English Version)
Kentico Technical Learning - Responsive Design with Kentico CMS 7
Responsive Web Design Primer - NAGW 2014

Recently uploaded (20)

PDF
Empathic Computing: Creating Shared Understanding
PDF
cuic standard and advanced reporting.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Approach and Philosophy of On baking technology
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Spectroscopy.pptx food analysis technology
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Electronic commerce courselecture one. Pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Empathic Computing: Creating Shared Understanding
cuic standard and advanced reporting.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Digital-Transformation-Roadmap-for-Companies.pptx
NewMind AI Weekly Chronicles - August'25 Week I
MIND Revenue Release Quarter 2 2025 Press Release
“AI and Expert System Decision Support & Business Intelligence Systems”
Approach and Philosophy of On baking technology
Diabetes mellitus diagnosis method based random forest with bat algorithm
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Advanced methodologies resolving dimensionality complications for autism neur...
The Rise and Fall of 3GPP – Time for a Sabbatical?
Spectroscopy.pptx food analysis technology
Programs and apps: productivity, graphics, security and other tools
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Electronic commerce courselecture one. Pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Spectral efficient network and resource selection model in 5G networks
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf

Mobile web in eZ Publish

  • 1. Mobile site (in eZ Publish)
  • 2. About me • Igor Vrdoljak (Netgen crew) • Working with eZ Publish for 8 years • Nowdays mostly doing PM work  but still trying to stay in the loop with eZ development • @ivrdoljak • igor@netgen.hr
  • 3. What is so special with mobile web on eZ? • Nothing really • More-less just a siteaccess with simplified design and big UI elements for fat fingers  • But... • Devil is in the details
  • 4. What are things to have in mind? • A few points to touch on: • Content strategy and mobile site content architecture • Mobile device detection • Tailoring your HTML(5) / CSS for mobile browsers • Using geolocation features •
  • 5. Content • eZ Publish content (model) is the king! • Organize your classes for content reusage • (Not only mobile web) • “Mobile” class attributes • Different ways of organizing the content for mobile site • Using the same content tree as in desktop siteaccesses • Google search hits work when coupled with proper device detection • Easy switching between mobile and desktop site • Separate subtree for mobile site • When content gets too messy, on legacy installations. • Mix of two above
  • 6. Device detection • If you build it, they will come. • Not really true • We need to redirect mobile users to right “mobile” pages • Google result links • Twitter links • • Several options available: • Redirecting in Javascript • Using server-side mobile detection provided by eZ Publish • A little hack that improves on server-side redirection
  • 7. Device detection • As of eZ 4.7 there is a solution for detection of mobile clients integrated in eZ Publish • Configured in site.ini: DetectMobileDevice=enabled MobileSiteAccessURL=http://m.telx.netgen.biz/ MobileSiteAccessList[]=m MobileDeviceDetectCookieTimeout=7200 MobileDeviceFilterClass=ezpMobileDeviceRegexpFilter  Easy to setup, but • does not support switching to appropriate URL, just redirects to mobile homepage
  • 8. Device detection • Hackish improvement for server-side mobile detection • Custom PHP code, called from config.php • Resolves the problem of redirecting between corresponding mobile and desktop pages • Rather rough on the edges but does the work  • Jump to code...
  • 9. Client side best practices • Standard eZ templateing • Simple, but efficient way of improving UX • HTML5 markup elements, CSS3 JS... • Be good to your lazy front-side developers • Support LESS • eZ Less can be used with to preprocess CSS • http://www.ezless.org/ • https://github.com/stdclass/ezless
  • 10. Geolocation with eZ Find • Mobile users are usually... mobile • Geolocation features based on ezgmaplocation attributes • Example: boosting geo-tagged objects with Haversine distance formula (Solr 3.1) can be used to calculate distance between points on sphere (like Earth) • Distance returned as SOLR score from eZ Find • GeohashHarvesine example ghhsin(6378000,geohash(lat,lng),geohash(lat1, lng1))
  • 11. Conclusion • Mobile strategy is a moving target • Responsive web design – one HTML to rule them all • Separate mobile site – when aiming a specific context • Integration with native applications via APIs • App Factory • REST APIs • A lot can be gained with relatively small effort • Be nice to your mobile users 