Sustainable Theming

22
Sustainable theming Its actually not just about theming.

description

Sustainable theming practices in Drupal by Palantir.net

Transcript of Sustainable Theming

Page 1: Sustainable Theming

Sustainable themingIts actually not just about theming.

Page 2: Sustainable Theming

What is it?

Page 3: Sustainable Theming

Sustainable Theming is...

developing a site that does not rely on you. You being the key word.

process for multi-person development teams.

keeping the team healthy.

streamlining your business processes.

patience.

Page 4: Sustainable Theming

It is not...about you.

Page 5: Sustainable Theming

It is not...CSS built before data architecture plan or development

CSS built before content types

CSS built before Views

CSS built before proliferated content

CSS built before fiddling with the TPLs

About writing HTML

Limited to theming

Page 6: Sustainable Theming

It’s about relying on what’s there

The markup structure that is coming from the system.

Using the markup provided by modules like Views and CCK.

And if you have a problem with the markup, get involved in making it better, in core, and not rewriting it yourself.

Page 7: Sustainable Theming

It may not be for...

a solo web developer

a person who will never update a site.

mortendk ;)

unless we can get him drunk enough

Page 8: Sustainable Theming

Who is it for?

Page 9: Sustainable Theming

And it’s not about the technique

Page 10: Sustainable Theming

So why should you do it?

Page 11: Sustainable Theming

So You Don’t Get Burned!!!

Page 12: Sustainable Theming

So you can take a vacation!

Page 13: Sustainable Theming

and...

Avoid having to start from scratch every time.

Easier to work in parallel with other teams.

So the client/maintainer can extend the site...without you, or a developer, or CSS additions, or HTML modifications, or TPL tweaking.

Page 14: Sustainable Theming

Why can’t we...put the power in the hands of the user?

make ourselves replaceable?

make things easier on the maintainer?

Page 15: Sustainable Theming

Palantir’s Approach

Page 16: Sustainable Theming

Palantir’s ApproachThere is no stylistic approach to HTML or CSS

Re-arranging markup first, rarely removing or modifying markup

Admin before TPL

Consider ease of workflow over ease of theming

Page 17: Sustainable Theming

Why we use ZenBecause we have commit access

CSS broken out by task

Semantic markup

Paint by numbers CSS

Logic based CSS classes

Layout method for markup source reordering

Common starting point

Flexible and complex designs, predictable markup and CSS

Page 18: Sustainable Theming

Why we transitionedSo we could support sites 6+ months after release.

So our clients could extend their own sites.

So our clients could adopt their sites as their own.

So we could have multiple themers on a project.

So we could streamline our process.

Page 19: Sustainable Theming

Streamline yourbusiness process

design process

development process

Q/A

knowledge transfer

Page 20: Sustainable Theming

Drupal is not a website.

Page 21: Sustainable Theming

Drupal is a content

management system

Page 22: Sustainable Theming

Just because it works doesn’t mean it’s right.

http://thereifixedit.com/2009/08/17/epic-kludge-photo-now-with-twice-the-windows/