101
DRUPAL 8 SITE BUILDING PREVIEW A peek into the next version! 1 Wednesday, October 23, 13

Drupal 8 Preview for Site Builders

  • Upload
    acquia

  • View
    2.040

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Drupal 8 Preview for Site Builders

DRUPAL 8 SITE BUILDING PREVIEW

A peek into the next version!

1Wednesday, October 23, 13

Page 2: Drupal 8 Preview for Site Builders

Learning Servicesat Acquia

• Heather on Twitter• @learningdrupal

• Contact me or• Ben Ortega,

Director of Learning Services about training

2Wednesday, October 23, 13

Page 3: Drupal 8 Preview for Site Builders

http://training.acquia.com/events

“Overall though the content of the course was excellent and well organized. I learned a great deal from this course.”

training.acquia.com/testimonials

3Wednesday, October 23, 13

Page 4: Drupal 8 Preview for Site Builders

What I’ll cover• Obligatory warning!• How to try out Drupal 8; Quick overview of

admin changes; Content editing, WYSIWYG, Images

• Site Building!• Building with Blocks, Content types• Making most of data with Schema.org• Configuration management

4Wednesday, October 23, 13

Page 5: Drupal 8 Preview for Site Builders

What I won’t cover today• How we got here• Theming (soon!)• Module development (soon!)• “Under the hood”

• Getting Up to Speed on Drupal 8http://lullabot.github.io/dme-presentations/d8-what-is-new/webinar.html#/

5Wednesday, October 23, 13

Page 6: Drupal 8 Preview for Site Builders

Get your hands on Drupal 8

6Wednesday, October 23, 13

Page 7: Drupal 8 Preview for Site Builders

drupal.org/core/release-cycle

Alpha release phase

7Wednesday, October 23, 13

Page 8: Drupal 8 Preview for Site Builders

drupal.org/core/release-cycle

Alpha release phase

8Wednesday, October 23, 13

Page 9: Drupal 8 Preview for Site Builders

Alpha 4 is out!

drupal.org/node/3060/release9Wednesday, October 23, 13

Page 10: Drupal 8 Preview for Site Builders

Ready when it’s ready

drupal.org/core/release-cycle10Wednesday, October 23, 13

Page 11: Drupal 8 Preview for Site Builders

What we should be doing• Testing upgrading modules and themes• Reporting problems with API• Testing patches and issues marked

“needs review”

• Developers should watch “How to upgrade your modules to Drupal 8”, DrupalCon Prague, 2013.

youtube.com/watch?v=AilpWNE0jzo11Wednesday, October 23, 13

Page 12: Drupal 8 Preview for Site Builders

Not a developer? Great!• Participate in usability research

groups.drupal.org/node/34302312Wednesday, October 23, 13

Page 13: Drupal 8 Preview for Site Builders

Tell others about it!• https://drupal.org/node/2116433

13Wednesday, October 23, 13

Page 14: Drupal 8 Preview for Site Builders

drupal.org/drupal-8.014Wednesday, October 23, 13

Page 15: Drupal 8 Preview for Site Builders

Or - Setting up locally• Install Git + download Drupal 8• git clone --branch 8.x http://git.drupal.org/

project/drupal.git

drupal.org/project/drupal/git-instructions15Wednesday, October 23, 13

Page 16: Drupal 8 Preview for Site Builders

Acquia Dev Desktop

acquia.com/downloads On Mac use Beta16Wednesday, October 23, 13

Page 17: Drupal 8 Preview for Site Builders

New look!

17Wednesday, October 23, 13

Page 18: Drupal 8 Preview for Site Builders

Install in any language!

18Wednesday, October 23, 13

Page 19: Drupal 8 Preview for Site Builders

19Wednesday, October 23, 13

Page 20: Drupal 8 Preview for Site Builders

Construction warning!

20Wednesday, October 23, 13

Page 21: Drupal 8 Preview for Site Builders

drupal.org/node/3060/commits

Changes daily

21Wednesday, October 23, 13

Page 22: Drupal 8 Preview for Site Builders

YAY! Contact form fields

22Wednesday, October 23, 13

Page 23: Drupal 8 Preview for Site Builders

Contact form

https://drupal.org/node/1849158https://drupal.org/node/1997692

23Wednesday, October 23, 13

Page 24: Drupal 8 Preview for Site Builders

Some funky errors?

24Wednesday, October 23, 13

Page 25: Drupal 8 Preview for Site Builders

What to do?• Right now, there will be many errors. Site

builders encouraged to test with first Beta releases. Still early yet!

• Try to replicate the error. • Clarify the steps and conditions to repeat!• Search for errors in Issue queue. • If a patch exists, test it. • If an error isn’t reported, add it.

25Wednesday, October 23, 13

Page 26: Drupal 8 Preview for Site Builders

drupal.org/node/73179

Good issue reports

26Wednesday, October 23, 13

Page 27: Drupal 8 Preview for Site Builders

What’s new with Drupal 8 Administration

Subtle improvements

27Wednesday, October 23, 13

Page 28: Drupal 8 Preview for Site Builders

Big things: Responsive

28Wednesday, October 23, 13

Page 29: Drupal 8 Preview for Site Builders

• No longer in random places like tabs etc.

Little things: Delete button

29Wednesday, October 23, 13

Page 30: Drupal 8 Preview for Site Builders

Module filter

30Wednesday, October 23, 13

Page 31: Drupal 8 Preview for Site Builders

Views in CORE!

31Wednesday, October 23, 13

Page 32: Drupal 8 Preview for Site Builders

Admin pages improved• More options for filtering, thanks to Views

32Wednesday, October 23, 13

Page 33: Drupal 8 Preview for Site Builders

Example: Customize admin

33Wednesday, October 23, 13

Page 34: Drupal 8 Preview for Site Builders

For more detail• Approx 32

Contrib modules which are mooted by Drupal 8.

• Another 8 Core modules which are gone or moved to Contrib.

acquia.com/blog/tutorial-drupal-8-site-building-preview-less-more

34Wednesday, October 23, 13

Page 35: Drupal 8 Preview for Site Builders

WYSIWYG and content editing

Improvements for content admins saves time for site builders

35Wednesday, October 23, 13

Page 36: Drupal 8 Preview for Site Builders

Improved content editing

36Wednesday, October 23, 13

Page 37: Drupal 8 Preview for Site Builders

In place editing

37Wednesday, October 23, 13

Page 38: Drupal 8 Preview for Site Builders

Edit in place• Edit images inline

38Wednesday, October 23, 13

Page 39: Drupal 8 Preview for Site Builders

Paste from Word• Cleans up markup! • Saves structure (if your filters allow those

headings)

39Wednesday, October 23, 13

Page 40: Drupal 8 Preview for Site Builders

Smart configuration

40Wednesday, October 23, 13

Page 41: Drupal 8 Preview for Site Builders

Some bugs in defaults• Default settings not

saved• “Sticky” might get

removed altogether.

drupal.org/node/2053461 drupal.org/node/197460

41Wednesday, October 23, 13

Page 43: Drupal 8 Preview for Site Builders

Images & Picture

43Wednesday, October 23, 13

Page 44: Drupal 8 Preview for Site Builders

Responsive all the way

44Wednesday, October 23, 13

Page 45: Drupal 8 Preview for Site Builders

Two cases for images

Image fields Designers controlConsistent input Consistent display

Inline imagesWriters controlVarying input and display

45Wednesday, October 23, 13

Page 46: Drupal 8 Preview for Site Builders

Example

46Wednesday, October 23, 13

Page 47: Drupal 8 Preview for Site Builders

Easier to identify

47Wednesday, October 23, 13

Page 48: Drupal 8 Preview for Site Builders

Arbitrary values!

48Wednesday, October 23, 13

Page 49: Drupal 8 Preview for Site Builders

Inline image

49Wednesday, October 23, 13

Page 50: Drupal 8 Preview for Site Builders

Demo: “Picture” formatter

50Wednesday, October 23, 13

Page 52: Drupal 8 Preview for Site Builders

Blocks

52Wednesday, October 23, 13

Page 53: Drupal 8 Preview for Site Builders

Flexible placement

53Wednesday, October 23, 13

Page 54: Drupal 8 Preview for Site Builders

54Wednesday, October 23, 13

Page 55: Drupal 8 Preview for Site Builders

Custom blocks and types

55Wednesday, October 23, 13

Page 56: Drupal 8 Preview for Site Builders

Add fields to blocks

56Wednesday, October 23, 13

Page 57: Drupal 8 Preview for Site Builders

Custom block types

57Wednesday, October 23, 13

Page 58: Drupal 8 Preview for Site Builders

Example custom type

58Wednesday, October 23, 13

Page 59: Drupal 8 Preview for Site Builders

Content type fields, form display and view modes

59Wednesday, October 23, 13

Page 60: Drupal 8 Preview for Site Builders

Your data and display

http://insideintercom.io/why-cards-are-the-future-of-the-web/60Wednesday, October 23, 13

Page 61: Drupal 8 Preview for Site Builders

Cards

http://insideintercom.io/why-cards-are-the-future-of-the-web/61Wednesday, October 23, 13

Page 62: Drupal 8 Preview for Site Builders

Site building in Drupal 8• Modelling data• Fields on everything• Not everything needs

to be a content type

• Smart markup with Schema.org

• RESTful web services

62Wednesday, October 23, 13

Page 63: Drupal 8 Preview for Site Builders

New fields• Datetime • E-mail• Entity reference - Link to

users, terms, content, etc. with an auto-complete field.

• Link• Telephone

63Wednesday, October 23, 13

Page 64: Drupal 8 Preview for Site Builders

Fields and more fields• Add fields to Blocks, Contact form, etc!• Comments are now a field!

64Wednesday, October 23, 13

Page 65: Drupal 8 Preview for Site Builders

65Wednesday, October 23, 13

Page 66: Drupal 8 Preview for Site Builders

66Wednesday, October 23, 13

Page 67: Drupal 8 Preview for Site Builders

67Wednesday, October 23, 13

Page 68: Drupal 8 Preview for Site Builders

Custom content types

68Wednesday, October 23, 13

Page 69: Drupal 8 Preview for Site Builders

schema.org/Restaurant

69Wednesday, October 23, 13

Page 70: Drupal 8 Preview for Site Builders

Add custom display modes

70Wednesday, October 23, 13

Page 71: Drupal 8 Preview for Site Builders

Demo: Add field• Add email field• Custom placeholder text• How to manage display• Custom displays

71Wednesday, October 23, 13

Page 72: Drupal 8 Preview for Site Builders

Configuration management

A site builder’s perspective

72Wednesday, October 23, 13

Page 73: Drupal 8 Preview for Site Builders

• Configuration management with built-in staging

Workflow

Your current config

Do not edit Activeconfiguration manually.

> Should match current

Copy most recent changes, before adding new file!

73Wednesday, October 23, 13

Page 74: Drupal 8 Preview for Site Builders

Workflow

drupal.org/node/170316874Wednesday, October 23, 13

Page 75: Drupal 8 Preview for Site Builders

Manage configuration

75Wednesday, October 23, 13

Page 76: Drupal 8 Preview for Site Builders

Export• Archived .tgz file• All site configuration, including new files.• Bring to “staging” directory of other site.

76Wednesday, October 23, 13

Page 77: Drupal 8 Preview for Site Builders

• Not advised to edit directly.

drupal.org/documentation/administer/config

In YAML files

77Wednesday, October 23, 13

Page 78: Drupal 8 Preview for Site Builders

Version control files• You can share configuration easily

78Wednesday, October 23, 13

Page 79: Drupal 8 Preview for Site Builders

Synchronize

79Wednesday, October 23, 13

Page 80: Drupal 8 Preview for Site Builders

New file example

80Wednesday, October 23, 13

Page 81: Drupal 8 Preview for Site Builders

Import yet?

81Wednesday, October 23, 13

Page 82: Drupal 8 Preview for Site Builders

Orphan field imported

82Wednesday, October 23, 13

Page 83: Drupal 8 Preview for Site Builders

Future?• Possible UI in Contrib!

83Wednesday, October 23, 13

Page 84: Drupal 8 Preview for Site Builders

Issue to checkout

drupal.org/node/2099363

84Wednesday, October 23, 13

Page 85: Drupal 8 Preview for Site Builders

Schema

85Wednesday, October 23, 13

Page 86: Drupal 8 Preview for Site Builders

http://www.google.com/insidesearch/features/recipes/86Wednesday, October 23, 13

Page 87: Drupal 8 Preview for Site Builders

Schema.org integration• Search engines can

read structured markup and microdata.

• Standard conventions.

• Google, Yahoo, Bing, etc

87Wednesday, October 23, 13

Page 88: Drupal 8 Preview for Site Builders

schema.org/Recipe

88Wednesday, October 23, 13

Page 89: Drupal 8 Preview for Site Builders

Smart markup• Map arbitrary

fields to canonical classifications of... everything.

• Thing > CreativeWork > Recipe

• cookTime

• ingredients

• recipeYield89Wednesday, October 23, 13

Page 90: Drupal 8 Preview for Site Builders

Article• Stored as .yml files

90Wednesday, October 23, 13

Page 91: Drupal 8 Preview for Site Builders

Article markup• Includes markup for core content types.

91Wednesday, October 23, 13

Page 92: Drupal 8 Preview for Site Builders

schema.org/Restaurant

92Wednesday, October 23, 13

Page 93: Drupal 8 Preview for Site Builders

Custom mapping!• Copy core example and adapt.

• Save with pattern:rdf.mapping.node.[bundle].yml

• UUID famkruithof.net/uuid/uuidgen

• Map to your chosen schema (Match “bundle” name; Add new fields)

• Import configuration

93Wednesday, October 23, 13

Page 94: Drupal 8 Preview for Site Builders

Match schema to fields• Modify and adapt from the core example• Remove fields you don’t need

Example from articlefor image field

Adapted for restaurantlogo field

94Wednesday, October 23, 13

Page 95: Drupal 8 Preview for Site Builders

Import configuration

95Wednesday, October 23, 13

Page 96: Drupal 8 Preview for Site Builders

Properties in markup

96Wednesday, October 23, 13

Page 97: Drupal 8 Preview for Site Builders

Future?• Possible UI in Contrib.

Many sprints coming up.

• Title: The future of search and SEO• Level: Intermediate• Speaker: Stéphane "scor" Corlosquet and

Nick "nick_vh" Veenhof

http://2013.badcamp.net/sessions/future-search-and-seo

97Wednesday, October 23, 13

Page 98: Drupal 8 Preview for Site Builders

If not now, then when?

98Wednesday, October 23, 13

Page 99: Drupal 8 Preview for Site Builders

Custom content types

99Wednesday, October 23, 13

Page 101: Drupal 8 Preview for Site Builders

Site Building courses

http://training.acquia.com/course/site-building-drupal-7101Wednesday, October 23, 13