72
The Battle For The Body Field Building future-friendly content Drupalcon Los Angeles, 5/12/2015 1 ^ narrative

Battle for the Body Field (DrupalCon)

Embed Size (px)

Citation preview

Page 1: Battle for the Body Field (DrupalCon)

The Battle For The Body FieldBuilding future-friendly content

Drupalcon Los Angeles, 5/12/2015

1

^ narrative

Page 2: Battle for the Body Field (DrupalCon)

Hi! I’m @eaton. I’m with Lullabot.

2

Page 3: Battle for the Body Field (DrupalCon)

We do big content.

3

Page 4: Battle for the Body Field (DrupalCon)

4

Title Summary Byline Body Gallery

<html>

☹ </html>

Page 5: Battle for the Body Field (DrupalCon)

5

Thar Be Dragons

Title Summary Byline Body Gallery

Page 6: Battle for the Body Field (DrupalCon)

The Project.6

Page 7: Battle for the Body Field (DrupalCon)

Easy to edit!7

Page 8: Battle for the Body Field (DrupalCon)

Rich media-ish!8

Page 9: Battle for the Body Field (DrupalCon)

Personalization!9

Unless you’re a Level 3 manager in Germany or France…

Page 10: Battle for the Body Field (DrupalCon)

They needed it all.10

Page 11: Battle for the Body Field (DrupalCon)

[ Interlude ]

11

Page 12: Battle for the Body Field (DrupalCon)

1212

Page 13: Battle for the Body Field (DrupalCon)

1212

Page 14: Battle for the Body Field (DrupalCon)

13

Page 15: Battle for the Body Field (DrupalCon)

13

Page 16: Battle for the Body Field (DrupalCon)

13

Page 17: Battle for the Body Field (DrupalCon)

13

Page 18: Battle for the Body Field (DrupalCon)

Content pressures:

‣Greater flexibility ‣More efficient reuse ‣ Faster production ‣ Richer narratives

14

Page 19: Battle for the Body Field (DrupalCon)

✓Narrative textReports, documentation, long-form news

✓ Islands of structureGalleries, instruction, data visualizations

✓ Placement that matters“But the gallery goes with that paragraph!”

15

Page 20: Battle for the Body Field (DrupalCon)

Smarter Templates?16

Page 21: Battle for the Body Field (DrupalCon)

More Fields & Entities?17

Page 22: Battle for the Body Field (DrupalCon)

Cleaner Markup?18

<figure class="gallery"> <ul> <li><a href=“/gal/1#1"><img src=“1.jpg”></a></li> <li><a href=“/gal/1#2"><img src="2.jpg"></a></li> <li><a href=“/gal/1#3”><img src="3.jpg"></a></li> </ul> <figcaption><a href="gal/1">Tagline!</a></figcaption> </figure>

Page 23: Battle for the Body Field (DrupalCon)

19

NeedTeaser

Chapter Related stories

Author bio Photo credit

Promoted

Aside Section Unordered List Paragraph Citation Emphasis

Have

Page 24: Battle for the Body Field (DrupalCon)

20

Page 25: Battle for the Body Field (DrupalCon)

So… The Solution?21

Page 26: Battle for the Body Field (DrupalCon)

Define The Vocabulary22

Page 27: Battle for the Body Field (DrupalCon)

Define The Vocabulary22

Stock QuoteNext Step

PersonalityTip

Office Location

Price Change

Anecdote

Album

Prize

Chapter

Page 28: Battle for the Body Field (DrupalCon)

Define The Vocabulary22

Stock QuoteNext Step

PersonalityTip

Office Location

Price Change

Anecdote

Album

Prize

Chapter

Page 29: Battle for the Body Field (DrupalCon)

Define The Vocabulary22

Stock QuoteNext Step

PersonalityTip

Office Location

Price Change

Anecdote

Album

Prize

Chapter

Page 30: Battle for the Body Field (DrupalCon)

Define The Vocabulary22

Stock QuoteNext Step

PersonalityTip

Office Location

Price Change

Anecdote

Album

Prize

Chapter

Page 31: Battle for the Body Field (DrupalCon)

Eliminate Boilerplate23

<figure class="gallery"> <ul> <li><a href=“/gal/1#1"><img src=“1.jpg”></a></li> <li><a href=“/gal/1#2"><img src="2.jpg"></a></li> <li><a href=“/gal/1#3”><img src="3.jpg"></a></li> </ul> <figcaption><a href="gal/1">Tagline!</a></figcaption> </figure>

<gallery id=1>Tagline!</gallery>

Page 32: Battle for the Body Field (DrupalCon)

Use Placeholders24

Page 33: Battle for the Body Field (DrupalCon)

Use Placeholders24

[gallery:1]

<gallery id=1/>

<div data-gallery=1/>

Page 34: Battle for the Body Field (DrupalCon)

Transform For Output25

Page 35: Battle for the Body Field (DrupalCon)

Transform For Output25

<gallery id=1>Tagline!</gallery>

Page 36: Battle for the Body Field (DrupalCon)

Transform For Output25

<gallery id=1>Tagline!</gallery>Mobile web

Enhanced web Email

Partner API Printable PDF

Mobile app

Title, link Scrolling gallery Image, caption, link Strip entirely “See page x…” JSON data

Page 37: Battle for the Body Field (DrupalCon)

No Rocket Science Required

26

Page 38: Battle for the Body Field (DrupalCon)

27

Page 39: Battle for the Body Field (DrupalCon)

28

Page 40: Battle for the Body Field (DrupalCon)

29

Page 41: Battle for the Body Field (DrupalCon)

29

Page 42: Battle for the Body Field (DrupalCon)

30

Page 43: Battle for the Body Field (DrupalCon)

30

Page 44: Battle for the Body Field (DrupalCon)

30

Page 45: Battle for the Body Field (DrupalCon)

31

<body> <group> <subtitle>The article intro…</subtitle> <pullquote> <quote>“Just say <em>no</em> to WYSIWYG.”</quote> <attribution>Jeff Eaton</attribution> <title>Digital Strategist, Lullabot</title> </pullquote> <assets> <asset id=1 /> </assets> <p>Here’s HTML, with <strong>formatting!</strong>…</p> <p>And an inline quote: <asset_inline company="GOOG"/>!</p> <group> </body>

Page 46: Battle for the Body Field (DrupalCon)

31

<body> <group> <subtitle>The article intro…</subtitle> <pullquote> <quote>“Just say <em>no</em> to WYSIWYG.”</quote> <attribution>Jeff Eaton</attribution> <title>Digital Strategist, Lullabot</title> </pullquote> <assets> <asset id=1 /> </assets> <p>Here’s HTML, with <strong>formatting!</strong>…</p> <p>And an inline quote: <asset_inline company="GOOG"/>!</p> <group> </body>

Page 47: Battle for the Body Field (DrupalCon)

31

<body> <group> <subtitle>The article intro…</subtitle> <pullquote> <quote>“Just say <em>no</em> to WYSIWYG.”</quote> <attribution>Jeff Eaton</attribution> <title>Digital Strategist, Lullabot</title> </pullquote> <assets> <asset id=1 /> </assets> <p>Here’s HTML, with <strong>formatting!</strong>…</p> <p>And an inline quote: <asset_inline company="GOOG"/>!</p> <group> </body>

Page 48: Battle for the Body Field (DrupalCon)

31

<body> <group> <subtitle>The article intro…</subtitle> <pullquote> <quote>“Just say <em>no</em> to WYSIWYG.”</quote> <attribution>Jeff Eaton</attribution> <title>Digital Strategist, Lullabot</title> </pullquote> <assets> <asset id=1 /> </assets> <p>Here’s HTML, with <strong>formatting!</strong>…</p> <p>And an inline quote: <asset_inline company="GOOG"/>!</p> <group> </body>

Page 49: Battle for the Body Field (DrupalCon)

Find Your Content’s Narrative Vocabulary

32

Page 50: Battle for the Body Field (DrupalCon)

Ubiquitous Language

‣Developers ‣ Business Experts ‣Designers ‣ Content Authors

33

Page 51: Battle for the Body Field (DrupalCon)

34

Editor

DesignerDeveloper

Manager

Page 52: Battle for the Body Field (DrupalCon)

Meanwhile, Linguistics

‣Duality (Components) ‣ Creativity (Reuse) ‣ Patterning (Rules)

35

Page 53: Battle for the Body Field (DrupalCon)

[ woah there ]

36

Page 54: Battle for the Body Field (DrupalCon)

Making It Happen

Once you’ve figured that out, it’s just work.

37

Page 55: Battle for the Body Field (DrupalCon)

Style Guides & Component LibrariesYou’re probably already doing it!

38

Page 56: Battle for the Body Field (DrupalCon)

Atomic Design39

Page 57: Battle for the Body Field (DrupalCon)

HTML5, Shadow DOM, React…

40

<gallery id=1/>JS JS HTML DATA JS HTML JS HTML CSS3 DATA HTML

Page 58: Battle for the Body Field (DrupalCon)

Node Embed Token Insert Entity Entity Embed

41

Tokens and tags for transclusion.

Page 59: Battle for the Body Field (DrupalCon)

Node Embed Token Insert Entity Entity Embed

41

Tokens and tags for transclusion.

Page 60: Battle for the Body Field (DrupalCon)

Node Embed Token Insert Entity Entity Embed

41

Tokens and tags for transclusion.

Page 61: Battle for the Body Field (DrupalCon)

Shortcodes42

Page 62: Battle for the Body Field (DrupalCon)

Node View Modes Field Formatters

43

Name and reuse a particular display style

Page 63: Battle for the Body Field (DrupalCon)

Roll Your Own! Nerdapalooza!

44

Page 64: Battle for the Body Field (DrupalCon)

Roll Your Own! Nerdapalooza!

44

Page 65: Battle for the Body Field (DrupalCon)

The Shared Vocabulary

45

Page 66: Battle for the Body Field (DrupalCon)

46

Page 67: Battle for the Body Field (DrupalCon)

Three Problems

‣Narrative text ‣ Islands of structure ‣ Placement that matters

47

Page 68: Battle for the Body Field (DrupalCon)

Four Steps

‣Define your “content language” ‣Use fields, entities, and custom markup ‣ Store, manage your vocabulary, not HTML’s ‣ Transform for output

48

Page 69: Battle for the Body Field (DrupalCon)

Five Payoffs

‣More creative freedom ‣ Easier to transform and repurpose ‣ Streamlined editing ‣ Less one-off development ‣ Improved communication

49

Page 70: Battle for the Body Field (DrupalCon)

50

Editor

DesignerDeveloper

Manager

Page 71: Battle for the Body Field (DrupalCon)

Excellent Books51

Page 72: Battle for the Body Field (DrupalCon)

Related Links52

• alistapart.com/article/battle-for-the-body-field • storyneedle.com/rich-narrative-possible-structured-content • slideshare.net/reduxd/modeling-structured-content-ias13-workshop • gadgetopia.com/post/8356 • insertcontenthere.com • patternlab.io • techcrunch.com/2014/03/23/layout-in-flipboard-for-web-and-windows • responsivenews.co.uk/post/77054578784 • smashingmagazine.com/2013/06/26/controlling-presentation-in-

structured-content