theming your views

6
June 27, 2009 Theming Your Views Presented by Mark W. Jarrell Drupal Username: attheshow Http://fleetthought.com

Upload: mark-jarrell

Post on 22-Nov-2014

639 views

Category:

Technology


0 download

DESCRIPTION

A presentation on how to do Views theming using both CSS and template files.

TRANSCRIPT

Page 2: Theming Your Views

What are we talking about?

✤ This is a “how to” session

✤ Building a view (the quick and dirty version)

✤ Modify the look and feel of the view output using some basic CSS

✤ Working with Views template files in order to completely change the code that comes out around your fields

Page 3: Theming Your Views

Why do we need to do any theming to what Views creates?

✤ Make your site look individual and stand apart from the crowd

✤ Control! You may not like what you get out-of-the-box.

✤ You may need some HTML in your list of items that Views isn’t generating for you.

✤ Example: “I wish I could automatically capitalize my node titles in this list.”

Page 4: Theming Your Views

What do we need to make it happen?✤ Not much! Fairly straightforward.

✤ Views modulehttp://drupal.org/project/views

✤ “Advanced Help” modulehttp://drupal.org/project/advanced_help

✤ Build a custom theme or modify an existing one

✤ Firebug Firefox Extensionhttps://addons.mozilla.org/en-US/firefox/addon/1843

Page 5: Theming Your Views

Demo

Page 6: Theming Your Views

Further Reading Links

✤ “Views 2 Theming”http://drupal.org/node/352970

✤ Install the “Advanced Help” Modulehttp://drupal.org/project/advanced_helpThen visit http://[YOURSITE]/admin/advanced_help/views

✤ Click on “Theme: Information” when looking at a viewand really read what it says there.

Photo On Intro Slide: Http://is.gd/1dIC3