BUILD BETTER WEBSITES
WITH PANELS!
SITE BUILDING TRACK | JEN LAMPTON | FEBRUARY 7 2013
Thursday, February 7, 2013
WITH PANELS! Thursday, February 7, 2013 BETTER WITH PANELS I am Jen - - PowerPoint PPT Presentation
SITE BUILDING TRACK | JEN LAMPTON | FEBRUARY 7 2013 BUILD BETTER WEBSITES WITH PANELS! Thursday, February 7, 2013 BETTER WITH PANELS I am Jen Lampton @jenlampton ~ http://www.jenlampton.com 2 Thursday, February 7, 2013 BETTER WITH PANELS I
SITE BUILDING TRACK | JEN LAMPTON | FEBRUARY 7 2013
Thursday, February 7, 2013
I am Jen Lampton
2
@jenlampton ~ http://www.jenlampton.com
Thursday, February 7, 2013
I am Jen Lampton
3
Thursday, February 7, 2013
I am Jen Lampton
4
Thursday, February 7, 2013
I am Jen Lampton
5
Thursday, February 7, 2013
I am Jen Lampton
6
Thursday, February 7, 2013
I am Jen Lampton
7
@jenlampton ~ http://www.jenlampton.com
Thursday, February 7, 2013
I am Jen Lampton
8
Thursday, February 7, 2013
I am Jen Lampton
I <3 Drupal. I <3 Panels.
9
@jenlampton ~ http://www.jenlampton.com
Thursday, February 7, 2013
Who are you?
10
Thursday, February 7, 2013
Who are you?
11
Thursday, February 7, 2013
Who are you?
12
Thursday, February 7, 2013
Who are you?
13
Thursday, February 7, 2013
Once upon a time...
14
Thursday, February 7, 2013
Once upon a time...
15
every page on your site used the same layout
Thursday, February 7, 2013
Once upon a time...
16
where "the content" was often in the middle
Thursday, February 7, 2013
Once upon a time...
17
and a bunch of other "stuff" was placed around it.
Thursday, February 7, 2013
Once upon a time...
18
For a while, this was fine :)
Thursday, February 7, 2013
Once upon a time...
19
But over time, we discovered that this one-layout-fits-all approach doesn't always cut it.
Thursday, February 7, 2013
One solution:
20
Visibility: telling the blocks not to show up on certain pages
Thursday, February 7, 2013
One solution:
21
allow the layout to adjust if there are no blocks.
Thursday, February 7, 2013
Problematic :/
22
each individual block needs be configured
Thursday, February 7, 2013
Another solution:
23
adjust the layout to not show blocks on certain pages
Thursday, February 7, 2013
Problematic :/
24
In this case, Drupal retrieves the blocks from its database and does some work to prepare them for display. But then that work ends up being a waste if Drupal throws out the blocks instead of printing them to the page.
Thursday, February 7, 2013
Also, not good enough :/
25
We still found the process of limiting when blocks appear - an insufficient solution for all our different page layout needs.
Thursday, February 7, 2013
But, it’s time for Drupal 7!
26
Thursday, February 7, 2013
But, it’s time for Drupal 7!
27
What do we do?
Thursday, February 7, 2013
But, it’s time for Drupal 7!
28
I know, let’s start with a crazier layout!
Thursday, February 7, 2013
But, it’s time for Drupal 7!
29
...with lots and lots of regions. For flexibility!
Thursday, February 7, 2013
Problematic :/
30
whoopsie, we over did it.
Thursday, February 7, 2013
Also, not good enough :/
31
Our “content” is still stuck in the middle.
Thursday, February 7, 2013
So what is the solution?
32
Thursday, February 7, 2013
Panels.
33
Panels allows you to control the layout of your site.
Thursday, February 7, 2013
Panels.
34
Panels allows you to control the layout of your site. But it requires a shift in how you think about site architecture.
Thursday, February 7, 2013
Are you ready?
35
Thursday, February 7, 2013
Are you ready?
36
Panels allows you to control the layout of your site. By controlling the layout of your content.
Thursday, February 7, 2013
Panels
37
a two column content layout.
Thursday, February 7, 2013
Panels
38
a two column site layout.
Thursday, February 7, 2013
Panels
39
a three column content layout.
Thursday, February 7, 2013
Panels
40
a three column site layout.
Thursday, February 7, 2013
What does this mean?
41
Thursday, February 7, 2013
What does this mean?
42
(I never have sidebars in any of my themes)
Thursday, February 7, 2013
What does this mean?
43
(I never have sidebars in any of my themes)
(you can even disable block module if you like)
Thursday, February 7, 2013
What does this mean?
44
(I never have sidebars in any of my themes)
(you can even disable block module if you like)
(don’t worry, this is how most people think about pages anyway)
Thursday, February 7, 2013
Let’s make some stuff better, shall we?
45
Thursday, February 7, 2013
Let’s make some stuff better, shall we?
46
Thursday, February 7, 2013
EXAMPLE 1: Home Page
47
Thursday, February 7, 2013
EXAMPLE 2: Node Page (blog)
48
Thursday, February 7, 2013
EXAMPLE 2: Node Page (event)
49
Thursday, February 7, 2013
EXAMPLE 3: User Page
50
Thursday, February 7, 2013
EXAMPLE 4: Taxonomy Term Page
51
Thursday, February 7, 2013
EXAMPLE 5: Custom Landing Pages
52
Thursday, February 7, 2013
Where’s the code?
53
Everything we’ve been playing with so far is pluggable.
Thursday, February 7, 2013
Are we out of time?
54
Thursday, February 7, 2013
SITE BUILDING TRACK | JEN LAMPTON | FEBRUARY 7 2013
Thursday, February 7, 2013