Your SlideShare is downloading. ×
0
CODE MY WEBSITE
 WITH DRUPAL 6
        Makara Wang
Code my Drupal 6 site


What’s in this session

   Setup a basic website with Drupal 6

   Build some custom modules

   D...
Code my Drupal 6 site


Why Drupal 6
Code my Drupal 6 site


      Why Code

Extensible

Version control

...
SETUP DRUPAL 6
Code my Drupal 6 site


Setup a clean Drupal 6
    Your directory, database...

    Install

    Play with modules

    Se...
BUILD MY MODULES
Code my Drupal 6 site


Requirements
Content types

  Session, Sponsor

Pages / Blocks

  Session list, Sponsor list, Atte...
Code my Drupal 6 site


Contributed Modules
   Must have

    Devel

   Recommend

    BUEditor
Code my Drupal 6 site


Coding Guidelines
  Keep simple

  Always find examples

    Core, Handbook...

  Use existing func...
Code my Drupal 6 site


Documentations
 Module developer's guide 6.x

   http://drupal.org/node/231276

 http://api.drupal...
Code my Drupal 6 site


Build a Content Type
   “Session”

     Subject, Description, Presenter

   Implement hooks

   Di...
Code my Drupal 6 site


Another type
“Sponsor”

  Name, Description, URL, Logo

URL

  hook_validate, valid_url

Logo

  I...
Code my Drupal 6 site


Build pages & blocks
   Sessions list page & block

     hook_menu, hook_block

     Query, Table,...
Code my Drupal 6 site


Another page
Sponsors list

  Theme sponsor logo

Dealing with images

  image.inc
Code my Drupal 6 site


Site support module

   A specific module for one site

     Best practice

     Attendees list - u...
Code my Drupal 6 site


      What else

I18n

...
Code my Drupal 6 site


Conclusion of coding


   Drupal as framework
DISCUSSION
THANK YOU


     Makara Wang
Upcoming SlideShare
Loading in...5
×

Build Drupal Camp Shanghai with Drupal6

3,221

Published on

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

No Downloads
Views
Total Views
3,221
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
44
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "Build Drupal Camp Shanghai with Drupal6"

  1. 1. CODE MY WEBSITE WITH DRUPAL 6 Makara Wang
  2. 2. Code my Drupal 6 site What’s in this session Setup a basic website with Drupal 6 Build some custom modules Discussion
  3. 3. Code my Drupal 6 site Why Drupal 6
  4. 4. Code my Drupal 6 site Why Code Extensible Version control ...
  5. 5. SETUP DRUPAL 6
  6. 6. Code my Drupal 6 site Setup a clean Drupal 6 Your directory, database... Install Play with modules Setup Profile RSVP, Organization, URL
  7. 7. BUILD MY MODULES
  8. 8. Code my Drupal 6 site Requirements Content types Session, Sponsor Pages / Blocks Session list, Sponsor list, Attendee list Random sponsor logo
  9. 9. Code my Drupal 6 site Contributed Modules Must have Devel Recommend BUEditor
  10. 10. Code my Drupal 6 site Coding Guidelines Keep simple Always find examples Core, Handbook... Use existing functions & hooks Read Documents
  11. 11. Code my Drupal 6 site Documentations Module developer's guide 6.x http://drupal.org/node/231276 http://api.drupal.org http://api.drupal.org/api/file/developer/ examples/node_example.module/6
  12. 12. Code my Drupal 6 site Build a Content Type “Session” Subject, Description, Presenter Implement hooks Display (theme) your fields (nodes)
  13. 13. Code my Drupal 6 site Another type “Sponsor” Name, Description, URL, Logo URL hook_validate, valid_url Logo Img module; Image functions later
  14. 14. Code my Drupal 6 site Build pages & blocks Sessions list page & block hook_menu, hook_block Query, Table, Pager Sessions admin page (form) drupal_get_form system_settings_form
  15. 15. Code my Drupal 6 site Another page Sponsors list Theme sponsor logo Dealing with images image.inc
  16. 16. Code my Drupal 6 site Site support module A specific module for one site Best practice Attendees list - using profile names
  17. 17. Code my Drupal 6 site What else I18n ...
  18. 18. Code my Drupal 6 site Conclusion of coding Drupal as framework
  19. 19. DISCUSSION
  20. 20. THANK YOU Makara Wang
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×