Your SlideShare is downloading. ×
0
Theming and content basics - Drupal Camp CT 2011
Theming and content basics - Drupal Camp CT 2011
Theming and content basics - Drupal Camp CT 2011
Theming and content basics - Drupal Camp CT 2011
Theming and content basics - Drupal Camp CT 2011
Theming and content basics - Drupal Camp CT 2011
Theming and content basics - Drupal Camp CT 2011
Theming and content basics - Drupal Camp CT 2011
Theming and content basics - Drupal Camp CT 2011
Theming and content basics - Drupal Camp CT 2011
Theming and content basics - Drupal Camp CT 2011
Theming and content basics - Drupal Camp CT 2011
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Theming and content basics - Drupal Camp CT 2011

645

Published on

This presentation covered theme basics including: anatomy of a Drupal theme, template layout and we created a basic theme.

This presentation covered theme basics including: anatomy of a Drupal theme, template layout and we created a basic theme.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
645
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Theming Basics - Turning A Static HTML Site Into A Drupal Theme
    Matt Tarsi
    Senior Web Developer
    mtarsi@am-llc.com
    08/20/11
  • 2. Introduction
    Matt Tarsi
    • tars16@d.o
    • 3. Been working with Drupal for 4 years
    • 4. Mainly Theming and Site Building
    • 5. First DrupalCamp Presentation
    2
  • 6. Agenda
    Anatomy of a Drupal Theme
    How are my Pages Being Built?
    PHP Required?
    Create Our Theme
    Q&A
    3
  • 7. Anatomy of a Drupal Theme
    .info file (only required file)
    name*
    description
    core*
    engine**
    screenshot
    base theme
    stylesheets
    scripts
    features
    regions
    * Required** Required most of the time
    4
  • 8. Anatomy of a Drupal Theme
    Templatefiles (.tpl.php)
    HTML Structure
    PHP Variables
    No complex logic
    Core templates contain documentation
    Override by copying
    Default template suggestions can be found here: http://drupal.org/node/190815
    5
  • 9. Anatomy of a Drupal Theme
    Contains Complex Logic
    Used to preprocess or process
    Advanced
    6
    template.php
    Theme Registry
    • Cache of available hooks and theme functions (and template files)
    • 10. Clear for New Templates or Functions
    • 11. Performance Page, Devel Module, Admin Module
  • Anatomy of a Drupal Theme
    Misc files
    Logo.png
    Screenshot.png
    Favicon.ico
    7
  • 12. Anatomy of a Drupal Theme
    Where do I put my new theme?
    /sites/all/themes/your_theme
    8
  • 13. How are my Pages Being Built?
    html.tpl.php
    9
    page.tpl.php
    region.tpl.php
    region.tpl.php
    block.tpl.php
    node.tpl.php
    region.tpl.php
  • 14. PHP Required?
    If you can copy and paste…
    10
    you’re good
    <?php print blah($blah[‘blah’]); ?>
  • 15. Demo Time
    11
  • 16. Q & A
    12

×