Grok Drupal (7) Theming (presented at DrupalCon San Francisco)
by Laura Scott
- 3,331 views
This is now DEPRECATED. Please see Grok Drupal (7) Theming, February 11 Update ...
This is now DEPRECATED. Please see Grok Drupal (7) Theming, February 11 Update
These are slides for my presentation at DrupalCon San Francisco, April 2010.
There is <a>audio/video of the presentation at the DCSF website</a>.
My apologies for the extraneous slides -- that's how Slideshare converted my Keynote file.
Statistics
- Likes
- 4
- Downloads
- 0
- Comments
- 2
- Embed Views
- Views on SlideShare
- 3,317
- Total Views
- 3,331

1–2 of 2 previous next
But stay here in this room for Jacine's session.
-
If you care about clean markup, check out Morten's session tomorrow
-
On Thursday is the big sprint. Even if you're new, come join in. Lots of breakout groups.
But stay here in this room for Jacine's session.
-
If you care about clean markup, check out Morten's session tomorrow
-
On Thursday is the big sprint. Even if you're new, come join in. Lots of breakout groups.
But stay here in this room for Jacine's session.
-
If you care about clean markup, check out Morten's session tomorrow
-
On Thursday is the big sprint. Even if you're new, come join in. Lots of breakout groups.
The good news
The good news
which template applies?
And the answer is clear:
[X]
It depends
which template applies?
And the answer is clear:
[X]
It depends
Let's start with the basics
[X] page.tpl.php **now don't fret over that php extension on the filename - get into it later**
Let's start with the basics
[X] page.tpl.php **now don't fret over that php extension on the filename - get into it later**
Let's start with the basics
[X] page.tpl.php **now don't fret over that php extension on the filename - get into it later**
Let's start with the basics
[X] page.tpl.php **now don't fret over that php extension on the filename - get into it later**
Let's start with the basics
[X] page.tpl.php **now don't fret over that php extension on the filename - get into it later**
Let's start with the basics
[X] page.tpl.php **now don't fret over that php extension on the filename - get into it later**
Let's start with the basics
[X] page.tpl.php **now don't fret over that php extension on the filename - get into it later**
Let's start with the basics
[X] page.tpl.php **now don't fret over that php extension on the filename - get into it later**
Let's start with the basics
[X] page.tpl.php **now don't fret over that php extension on the filename - get into it later**
Let's start with the basics
[X] page.tpl.php **now don't fret over that php extension on the filename - get into it later**
Let's start with the basics
[X] page.tpl.php **now don't fret over that php extension on the filename - get into it later**
Let's start with the basics
[X] page.tpl.php **now don't fret over that php extension on the filename - get into it later**
Let's start with the basics
[X] page.tpl.php **now don't fret over that php extension on the filename - get into it later**
Let's start with the basics
[X] page.tpl.php **now don't fret over that php extension on the filename - get into it later**
Let's start with the basics
[X] page.tpl.php **now don't fret over that php extension on the filename - get into it later**
Let's start with the basics
[X] page.tpl.php **now don't fret over that php extension on the filename - get into it later**
Let's start with the basics
[X] page.tpl.php **now don't fret over that php extension on the filename - get into it later**
Let's start with the basics
[X] page.tpl.php **now don't fret over that php extension on the filename - get into it later**
Let's start with the basics
[X] page.tpl.php **now don't fret over that php extension on the filename - get into it later**
Let's start with the basics
[X] page.tpl.php **now don't fret over that php extension on the filename - get into it later**
Let's start with the basics
[X] page.tpl.php **now don't fret over that php extension on the filename - get into it later**
Let's start with the basics
[X] page.tpl.php **now don't fret over that php extension on the filename - get into it later**
Let's start with the basics
[X] page.tpl.php **now don't fret over that php extension on the filename - get into it later**
Let's start with the basics
[X] page.tpl.php **now don't fret over that php extension on the filename - get into it later**
Let's start with the basics
[X] page.tpl.php **now don't fret over that php extension on the filename - get into it later**
Let's start with the basics
[X] page.tpl.php **now don't fret over that php extension on the filename - get into it later**
Let's start with the basics
[X] page.tpl.php **now don't fret over that php extension on the filename - get into it later**
Let's start with the basics
[X] page.tpl.php **now don't fret over that php extension on the filename - get into it later**
Let's start with the basics
[X] page.tpl.php **now don't fret over that php extension on the filename - get into it later**
Let's start with the basics
[X] page.tpl.php **now don't fret over that php extension on the filename - get into it later**
Let's start with the basics
[X] page.tpl.php **now don't fret over that php extension on the filename - get into it later**
Let's start with the basics
[X] page.tpl.php **now don't fret over that php extension on the filename - get into it later**
Let's start with the basics
[X] page.tpl.php **now don't fret over that php extension on the filename - get into it later**
So where is the page template?
[X]
Then is the head information
Yes, there is PHP, but look at how simple and contained it is.
Scared? If you leave the stuff between the php tags, you'll be fine
[X]
Then is the body.
An example of the power you have. Look at that ugly "skip-link" div. Why?
[X] (to focus)
This is the power of templates. You can change this kind of stuff.
Aside: If you define custom regions, it is important to remember that you need to include the page_top and page_bottom regions in your set of regions.
If you're looking at a river of news, nodes will have h2 tags for their titles.
The blocks should have h3 tags at the least. This is supplementary info with a lower semantic importance.
[X]
fields are now in core
[X]
fields are now in core
[X]
fields are now in core
[X]
fields are now in core
[X]
fields are now in core
[X]
fields are now in core
Left out to focus on what we see
But now let's get into it:
[x} REGIONS
Left out to focus on what we see
But now let's get into it:
[x} REGIONS
The tpl file is just a potato sack.
The sack is the same, but what's in it makes the sack different.
The syntax in Drupal 7 is new, but it's a simple, consistent syntax
Header
[X]
The syntax in Drupal 7 is new, but it's a simple, consistent syntax
Header
[X]
The syntax in Drupal 7 is new, but it's a simple, consistent syntax
Header
[X]
The syntax in Drupal 7 is new, but it's a simple, consistent syntax
Header
[X]
The syntax in Drupal 7 is new, but it's a simple, consistent syntax
Header
[X]
The syntax in Drupal 7 is new, but it's a simple, consistent syntax
Header
[X]
The syntax in Drupal 7 is new, but it's a simple, consistent syntax
Header
[X]
There's one more major part of the Drupal theming system you'll want to be aware of.
or [X]
Which makes them the best and easiest way to "modify" a theme.
And JavaScripts.
Makes sense, right?
[X]
Don't do that!
Makes sense, right?
[X]
Don't do that!
Makes sense, right?
[X]
Don't do that!
[X]
For example, node templates can be made for each content type
[X]
Note something new in Drupal 7
[X]
For example, node templates can be made for each content type
[X]
Note something new in Drupal 7
[X]
For example, node templates can be made for each content type
[X]
Note something new in Drupal 7
[X]
For example, node templates can be made for each content type
[X]
Note something new in Drupal 7
You now use a double-hyphen delimiter
You now use a double-hyphen delimiter
You now use a double-hyphen delimiter
You now use a double-hyphen delimiter
For example.
For example.
For example.
For example.
For example.
For example.
For example.
More technical because the theming layer is presenting more things that you cannot see, but robots CAN see
More technical because the theming layer is presenting more things that you cannot see, but robots CAN see
More technical because the theming layer is presenting more things that you cannot see, but robots CAN see