Display Suite @ DrupalCamp Stockholm 2013

Post on 12-May-2015

831 views 3 download

Tags:

transcript

Display Suite

Drupalcamp Stockholm 2013

Wunderkraut Belgium

Lead developer @ wunderkrautTwitter: @swentelLead maintainer Display Suiteco-maintainer of Field group and moreDrupal core co-maintainer for Field API

Kristof De Jaeger

About me

In this session

•Most asked questions•Demo•Your questions

Disclaimer

I’m a developer

Ugly slides coming up

What does it do ?

The essence

Swap template files

Kill templates

The essence

Expose more properties

The essence

The essence

Work on any entity by default

The essence

Uses power of view modes

The essence

All done on Field UI

Field UI has power

It’s hugeIt’s huge

Field templates

Like ‘fences’But we do it better™

Field templates

Field templates

Field templates

DS extrasAll kinds of small features:title, region to block, field

permissions, views displays ...

DS Forms

Add wrappers to forms

DS Search

Beautiful search results

Demo time

7.x-1.x vs 7.x-2.x

Do not upgrade

On existing sitesBoth branches are supported

Template changes

•Look completely different•Hide empty regions is gone•Support forms by default•drush ds-build

HTML 5 in 7.x-1.x

•Custom templates•Only for layouts

HTML 5

Fieldgroup wrapper

UX analysis

•Problem for first time users•Don’t know what to do•Don’t know where to click

Menu DS 1

Layout list DS 1

Layout tab

Layout tab

•Default tab to layout•Preview images•AJAX•Remove the apply button•Add default fields

Change layout

Contextual links

Integrates with edit

Other

•Display Suite UI module•Code format module•Flags support•And more

Panelizer

Panel view modes is gone Use 7.x-3.x branch of Panelizer

Do you hate panels ?

What is Panels

Layout builder

Integration

Page managerMini panelsPanelizer

etc

Visual editor

vs Field UI :)

Context

View modes are our context

@fregadrupal’s godwin’s law: as a presentation grows longer the probability of a (futile) discussion of panels vs display suite approaches 1

We use it !

You should too

How do you use it in projects ?

Tools

Display SuiteSemantic Views

Panels everywhereSemantic Panels

Kill templates

Starting point

No markup at all

KILL ALL THE MARKUP

Freedom

For designersand

frontenders

Developers

Security

How is the performance ?

The no 1 Q

Configuration is cached

Core function

134 lines

Typical request

600 lines

The actual problem

Drupal

Field API

http://drupal.org/node/1040790

Views and fields

Needs to load the entity

What does it mean for you ?

Getting scary

50.000 installations

Understanding

Thank you

Questions

Credits- http://www.flickr.com/photos/xurble/376588066/- www.gtresearchnews.gatech.edu- James Panton of Code Enigma