developing for mobile devices in magnolia

87
Magnolia is a registered trademark owned by Magnolia International Ltd. Version 1.1 Samuel Schmitt, Technical Account Manager @ Magnolia February 20, 2014 1 Developing for Mobile Devices in Magnolia Tuesday, March 18, 14

Upload: magnolia-cms

Post on 10-May-2015

227 views

Category:

Technology


0 download

DESCRIPTION

This presentation was given at Amplify Miami 2014 by Samuel Schmitt, Senior Consultant at Magnolia International. Mobile technology continues to change how we consume and create content on a daily basis. That's why Magnolia 5 was built from the ground up to manage multiple themes for virtually any type of mobile device. Now you can manage, create and publish content to all of your channels - including mobile - and with a minimum of effort. This presentation will explore how to define mobile themes, modify mobile templates, and create channels for devices (Android, iPhone, Windows Phone). Our Senior Consultant Samuel Schmitt will take you through the entire process - from mobile authoring on a tablet to native apps that connect with Magnolia to instant mobile sites.

TRANSCRIPT

Page 1: Developing for Mobile Devices in Magnolia

Magnolia is a registered trademark owned by Magnolia International Ltd.Version 1.1

Samuel Schmitt, Technical Account Manager @ Magnolia February 20, 2014

1

Developing for Mobile Devices in Magnolia

Tuesday, March 18, 14

Page 2: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.2

Mobile Devices and Magnolia

• Today mobile is everywhere

• We are all consuming information from a mobile device

• Publishing information from a mobile

• Using Web app or Native app

Tuesday, March 18, 14

Page 3: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.3

Mobile Devices and Magnolia

• This presentation is a journey into the “mobile” aspects of Magnolia

• Mobile authoring on a tablet• Instant publication on mobile• Multi mobile site development • Native app with Magnolia

Tuesday, March 18, 14

Page 4: Developing for Mobile Devices in Magnolia

Magnolia is a registered trademark owned by Magnolia International Ltd.Version 1.1

Create content wherever you are

4

Tuesday, March 18, 14

Page 5: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.5

Create content wherever you are

• I’m a journalist for a news website

• I have to write many stories every day

• I’m never working from my office

• Always on the road with my iPad

Tuesday, March 18, 14

Page 6: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.6

Create content wherever you are

Magnolia CMS allows you to create and manage content on the tablet, just as easily as on the desktop

Whether you're on the iPad...... or at the desktop, Magnolia gives you an optimized CMS user

experience

Tuesday, March 18, 14

Page 7: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.

How does it work?

7

•Create a new content app•Create a dedicated workspace•Create a form / dialog

•Create a new component•Model returns list of Article•Component set on a page

Tuesday, March 18, 14

Page 8: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.

How does it work?

8

Tuesday, March 18, 14

Page 9: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.

How does it work?

8

Tuesday, March 18, 14

Page 10: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.

How does it work?

8

Tuesday, March 18, 14

Page 11: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.

How does it work?

8

Tuesday, March 18, 14

Page 12: Developing for Mobile Devices in Magnolia

Magnolia is a registered trademark owned by Magnolia International Ltd.Version 1.1

Publishing for mobile

9

Tuesday, March 18, 14

Page 13: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.10

Publishing for mobile with Magnolia

• Go mobile instantly

• Content formatted and optimized to match device capabilities

• Out of the box. Standard Templating Kit (STK) includes mobile website templates

• Mobile preview for smartphones and tablets such as iPad

Tuesday, March 18, 14

Page 14: Developing for Mobile Devices in Magnolia

Magnolia is a registered trademark owned by Magnolia International Ltd.Version 1.1

Instant mobile sites with Magnolia

11

Tuesday, March 18, 14

Page 15: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.

Instant mobile sites

12

Tuesday, March 18, 14

Page 16: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.

Benefits of Instant Mobile feature

• Publish for desktop and mobile at the same time

• Avoid duplication of content

• No multiple site to maintain

• SEO Friendly, same URL for mobile and desktop

• Already here!!

13

Tuesday, March 18, 14

Page 17: Developing for Mobile Devices in Magnolia

Magnolia is a registered trademark owned by Magnolia International Ltd.Version 1.1

Deeper look at Instant Mobile

14

Tuesday, March 18, 14

Page 18: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.15

Deeper look at Instant Mobile

Tuesday, March 18, 14

Page 19: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.15

Deeper look at Instant Mobile

Tuesday, March 18, 14

Page 20: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.16

Same page but different rendering

Variation:•Control pages areas to display•Define HTML Structure•Define CSS, JS to use•Control size of images

Tuesday, March 18, 14

Page 21: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.

Variation: Control areas to display

17

Disable / Enable areasby configuration

Tuesday, March 18, 14

Page 22: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.

Variation: Define HTML Structure

18

Change HTML of pages templates

and components templates

Tuesday, March 18, 14

Page 23: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.

Variation: Define CSS, JS to use

19

Mobile theme

Tuesday, March 18, 14

Page 24: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.

Variation: Control size of images

20

Imaging module

Tuesday, March 18, 14

Page 25: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.21

Variation and Site Definition

Tuesday, March 18, 14

Page 26: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.21

Variation and Site Definition

Add a variation in a site definition

Tuesday, March 18, 14

Page 27: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.22

Deeper look at Instant Mobile

Tuesday, March 18, 14

Page 28: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.22

Deeper look at Instant Mobile

Tuesday, March 18, 14

Page 29: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.22

Deeper look at Instant Mobile

Tuesday, March 18, 14

Page 30: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.

Mobile Rendering Process

23

1. Info about mobile device set in the context.

Tuesday, March 18, 14

Page 31: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.

Mobile Rendering Process

23

1. Info about mobile device set in the context.

2. Device channel resolved, set Channel / Variation name in the Aggregation state

Tuesday, March 18, 14

Page 32: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.

Mobile Rendering Process

23

1. Info about mobile device set in the context.

2. Device channel resolved, set Channel / Variation name in the Aggregation state

3. Merge of the site definition with the variation

Tuesday, March 18, 14

Page 33: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.

Mobile Rendering Process

23

1. Info about mobile device set in the context.

2. Device channel resolved, set Channel / Variation name in the Aggregation state

3. Merge of the site definition with the variation

4. Render the content

Tuesday, March 18, 14

Page 34: Developing for Mobile Devices in Magnolia

Magnolia is a registered trademark owned by Magnolia International Ltd.Version 1.1

And now?

24

Tuesday, March 18, 14

Page 35: Developing for Mobile Devices in Magnolia

All characters appearing in this work are fictitious.

Any resemblance to real persons, living or dead, is purely

coincidental

Tuesday, March 18, 14

Page 36: Developing for Mobile Devices in Magnolia

Tuesday, March 18, 14

Page 37: Developing for Mobile Devices in Magnolia

Few weeks after Miami Amplify 2014

Tuesday, March 18, 14

Page 38: Developing for Mobile Devices in Magnolia

In the office of the Big Boss of a Super Great Website

done with Magnolia

Tuesday, March 18, 14

Page 39: Developing for Mobile Devices in Magnolia

Tuesday, March 18, 14

Page 40: Developing for Mobile Devices in Magnolia

Tuesday, March 18, 14

Page 41: Developing for Mobile Devices in Magnolia

John, could you come over here

Tuesday, March 18, 14

Page 42: Developing for Mobile Devices in Magnolia

John, could you come over here

Tuesday, March 18, 14

Page 43: Developing for Mobile Devices in Magnolia

John, could you come over here

Yes, Mr. Big Boss. How can I help you?

Tuesday, March 18, 14

Page 44: Developing for Mobile Devices in Magnolia

John, could you come over here

Yes, Mr. Big Boss. How can I help you?I bought the

new Samsung Galaxy to my wife

Tuesday, March 18, 14

Page 45: Developing for Mobile Devices in Magnolia

John, could you come over here

Yes, Mr. Big Boss. How can I help you?I bought the

new Samsung Galaxy to my wife

And ???

Tuesday, March 18, 14

Page 46: Developing for Mobile Devices in Magnolia

John, could you come over here

Yes, Mr. Big Boss. How can I help you?I bought the

new Samsung Galaxy to my wife

And ??? I just

realized that our website is not optimized for

Samsung

Tuesday, March 18, 14

Page 47: Developing for Mobile Devices in Magnolia

John, could you come over here

Yes, Mr. Big Boss. How can I help you?I bought the

new Samsung Galaxy to my wife

And ??? I just

realized that our website is not optimized for

Samsung

Euh.... And ???

Tuesday, March 18, 14

Page 48: Developing for Mobile Devices in Magnolia

John, could you come over here

Yes, Mr. Big Boss. How can I help you?I bought the

new Samsung Galaxy to my wife

And ??? I just

realized that our website is not optimized for

Samsung

Euh.... And ???

Please do something !!

Tuesday, March 18, 14

Page 49: Developing for Mobile Devices in Magnolia

John, could you come over here

Yes, Mr. Big Boss. How can I help you?I bought the

new Samsung Galaxy to my wife

And ??? I just

realized that our website is not optimized for

Samsung

Euh.... And ???

Please do something !!

Ok Big Boss !! I come back to you in few

days with a solution

Tuesday, March 18, 14

Page 50: Developing for Mobile Devices in Magnolia

Tuesday, March 18, 14

Page 51: Developing for Mobile Devices in Magnolia

Few minutes later

Tuesday, March 18, 14

Page 52: Developing for Mobile Devices in Magnolia

In the IT Department

Tuesday, March 18, 14

Page 53: Developing for Mobile Devices in Magnolia

Tuesday, March 18, 14

Page 54: Developing for Mobile Devices in Magnolia

Tuesday, March 18, 14

Page 55: Developing for Mobile Devices in Magnolia

Tim, Jim! We got a request from

the Big Boss

Tuesday, March 18, 14

Page 56: Developing for Mobile Devices in Magnolia

Tim, Jim! We got a request from

the Big Boss

WHAT?? A request??

Tuesday, March 18, 14

Page 57: Developing for Mobile Devices in Magnolia

Tim, Jim! We got a request from

the Big Boss

WHAT?? A request??

Yes. We have to build a new site for Samsung

Galaxy

Tuesday, March 18, 14

Page 58: Developing for Mobile Devices in Magnolia

Tim, Jim! We got a request from

the Big Boss

WHAT?? A request??

Yes. We have to build a new site for Samsung

Galaxy

Why

WT****

Tuesday, March 18, 14

Page 59: Developing for Mobile Devices in Magnolia

Tim, Jim! We got a request from

the Big Boss

WHAT?? A request??

Yes. We have to build a new site for Samsung

Galaxy

Why

WT****

Guys, please. We are using Magnolia.

It must be easy.

Tuesday, March 18, 14

Page 60: Developing for Mobile Devices in Magnolia

Tim, Jim! We got a request from

the Big Boss

WHAT?? A request??

Yes. We have to build a new site for Samsung

Galaxy

Why

WT****

Guys, please. We are using Magnolia.

It must be easy.

Tim?

Tuesday, March 18, 14

Page 61: Developing for Mobile Devices in Magnolia

Tim, Jim! We got a request from

the Big Boss

WHAT?? A request??

Yes. We have to build a new site for Samsung

Galaxy

Why

WT****

Guys, please. We are using Magnolia.

It must be easy.

Tim?

Yes, Jim?

Tuesday, March 18, 14

Page 62: Developing for Mobile Devices in Magnolia

Tim, Jim! We got a request from

the Big Boss

WHAT?? A request??

Yes. We have to build a new site for Samsung

Galaxy

Why

WT****

Guys, please. We are using Magnolia.

It must be easy.

Tim?

Yes, Jim?Do you

remember what the French said in

Miami?

Tuesday, March 18, 14

Page 63: Developing for Mobile Devices in Magnolia

Tim, Jim! We got a request from

the Big Boss

WHAT?? A request??

Yes. We have to build a new site for Samsung

Galaxy

Why

WT****

Guys, please. We are using Magnolia.

It must be easy.

Tim?

Yes, Jim?Do you

remember what the French said in

Miami?

When? At the Bar

Tuesday, March 18, 14

Page 64: Developing for Mobile Devices in Magnolia

Tim, Jim! We got a request from

the Big Boss

WHAT?? A request??

Yes. We have to build a new site for Samsung

Galaxy

Why

WT****

Guys, please. We are using Magnolia.

It must be easy.

Tim?

Yes, Jim?Do you

remember what the French said in

Miami?

When? At the Bar

No during his great presentation

Tuesday, March 18, 14

Page 65: Developing for Mobile Devices in Magnolia

Tim, Jim! We got a request from

the Big Boss

WHAT?? A request??

Yes. We have to build a new site for Samsung

Galaxy

Why

WT****

Guys, please. We are using Magnolia.

It must be easy.

Tim?

Yes, Jim?Do you

remember what the French said in

Miami?

When? At the Bar

No during his great presentation

Ah. Yes !!

Tuesday, March 18, 14

Page 66: Developing for Mobile Devices in Magnolia

Tim, Jim! We got a request from

the Big Boss

WHAT?? A request??

Yes. We have to build a new site for Samsung

Galaxy

Why

WT****

Guys, please. We are using Magnolia.

It must be easy.

Tim?

Yes, Jim?Do you

remember what the French said in

Miami?

When? At the Bar

No during his great presentation

Ah. Yes !!We have to update the device detection filter.

Tuesday, March 18, 14

Page 67: Developing for Mobile Devices in Magnolia

Tim, Jim! We got a request from

the Big Boss

WHAT?? A request??

Yes. We have to build a new site for Samsung

Galaxy

Why

WT****

Guys, please. We are using Magnolia.

It must be easy.

Tim?

Yes, Jim?Do you

remember what the French said in

Miami?

When? At the Bar

No during his great presentation

Ah. Yes !!We have to update the device detection filter.

Add a new channel and a new variation.

Tuesday, March 18, 14

Page 68: Developing for Mobile Devices in Magnolia

Tim, Jim! We got a request from

the Big Boss

WHAT?? A request??

Yes. We have to build a new site for Samsung

Galaxy

Why

WT****

Guys, please. We are using Magnolia.

It must be easy.

Tim?

Yes, Jim?Do you

remember what the French said in

Miami?

When? At the Bar

No during his great presentation

Ah. Yes !!We have to update the device detection filter.

Add a new channel and a new variation.

A new theme and that’s it !!

Tuesday, March 18, 14

Page 69: Developing for Mobile Devices in Magnolia

Tim, Jim! We got a request from

the Big Boss

WHAT?? A request??

Yes. We have to build a new site for Samsung

Galaxy

Why

WT****

Guys, please. We are using Magnolia.

It must be easy.

Tim?

Yes, Jim?Do you

remember what the French said in

Miami?

When? At the Bar

No during his great presentation

Ah. Yes !!We have to update the device detection filter.

Add a new channel and a new variation.

A new theme and that’s it !!

Great guys. I can see that we have a solution.

Tuesday, March 18, 14

Page 70: Developing for Mobile Devices in Magnolia

Tim, Jim! We got a request from

the Big Boss

WHAT?? A request??

Yes. We have to build a new site for Samsung

Galaxy

Why

WT****

Guys, please. We are using Magnolia.

It must be easy.

Tim?

Yes, Jim?Do you

remember what the French said in

Miami?

When? At the Bar

No during his great presentation

Ah. Yes !!We have to update the device detection filter.

Add a new channel and a new variation.

A new theme and that’s it !!

Great guys. I can see that we have a solution.

How long it will take?

Tuesday, March 18, 14

Page 71: Developing for Mobile Devices in Magnolia

Tim, Jim! We got a request from

the Big Boss

WHAT?? A request??

Yes. We have to build a new site for Samsung

Galaxy

Why

WT****

Guys, please. We are using Magnolia.

It must be easy.

Tim?

Yes, Jim?Do you

remember what the French said in

Miami?

When? At the Bar

No during his great presentation

Ah. Yes !!We have to update the device detection filter.

Add a new channel and a new variation.

A new theme and that’s it !!

Great guys. I can see that we have a solution.

How long it will take?

Mmm...

Tuesday, March 18, 14

Page 72: Developing for Mobile Devices in Magnolia

Tim, Jim! We got a request from

the Big Boss

WHAT?? A request??

Yes. We have to build a new site for Samsung

Galaxy

Why

WT****

Guys, please. We are using Magnolia.

It must be easy.

Tim?

Yes, Jim?Do you

remember what the French said in

Miami?

When? At the Bar

No during his great presentation

Ah. Yes !!We have to update the device detection filter.

Add a new channel and a new variation.

A new theme and that’s it !!

Great guys. I can see that we have a solution.

How long it will take?

Mmm...

About 3 days

Tuesday, March 18, 14

Page 73: Developing for Mobile Devices in Magnolia

Tim, Jim! We got a request from

the Big Boss

WHAT?? A request??

Yes. We have to build a new site for Samsung

Galaxy

Why

WT****

Guys, please. We are using Magnolia.

It must be easy.

Tim?

Yes, Jim?Do you

remember what the French said in

Miami?

When? At the Bar

No during his great presentation

Ah. Yes !!We have to update the device detection filter.

Add a new channel and a new variation.

A new theme and that’s it !!

Great guys. I can see that we have a solution.

How long it will take?

Mmm...

About 3 days Ok Great. Then I will say to the Big Boss that it will be ready in 2 weeks

Tuesday, March 18, 14

Page 74: Developing for Mobile Devices in Magnolia

Tuesday, March 18, 14

Page 75: Developing for Mobile Devices in Magnolia

Tuesday, March 18, 14

Page 76: Developing for Mobile Devices in Magnolia

Tuesday, March 18, 14

Page 77: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.

What Tim and Jim did

31

New deviceDetection filter that handle Samsung device

Tuesday, March 18, 14

Page 78: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.

What Tim and Jim did

32

New “samsung” channel

Tuesday, March 18, 14

Page 79: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.

What Tim and Jim did

33

New variation “samsung” using another theme

Tuesday, March 18, 14

Page 80: Developing for Mobile Devices in Magnolia

Magnolia is a registered trademark owned by Magnolia International Ltd.Version 1.1

Native App and Magnolia

34

Tuesday, March 18, 14

Page 81: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.35

Native App and Magnolia

• Native app

• iOS App• Android App

• Advantages compare to Mobile web app

• Take full advantage of all the device features• Use the device’s notification system• Can work offline

Tuesday, March 18, 14

Page 82: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.36

Native App and Magnolia - Use cases

• I must be able to write articles even without internet connection and publish them automatically to my site

• I want to enrich my native app with content coming from different sites

Tuesday, March 18, 14

Page 83: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.

How does it work?

37

Create a new iOS app

Tuesday, March 18, 14

Page 84: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.

How does it work?

37

Create a new iOS app

Author

Magnolia

JCR

REST API

name: “image”, JSON“properties”: [ { “title”:”The title”,

“more”: “properties”}]

Create a new Asset in DAM

Tuesday, March 18, 14

Page 85: Developing for Mobile Devices in Magnolia

Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.

How does it work?

37

Create a new iOS app

Author

Magnolia

JCR

REST API

name: “image”, JSON“properties”: [ { “title”:”The title”,

“more”: “properties”}]

Create a new Asset in DAM

Display specific Asset folder in a page

Tuesday, March 18, 14

Page 86: Developing for Mobile Devices in Magnolia

Magnolia is a registered trademark owned by Magnolia International Ltd.Version 1.1

OOTB

Template

Ipad AuthoringApps

REST

Observation

Mutli mobile siteTheme

Variation

Native appJSON

Channel

Device Detection

The Journey is Over

38

Instant MobilePreview

OOTB

Tailored Rendering

Tuesday, March 18, 14

Page 87: Developing for Mobile Devices in Magnolia

Magnolia is a registered trademark owned by Magnolia International Ltd.Version 1.1

Questions

39

Tuesday, March 18, 14