Contenu connexe
Similaire à Build Drupal Camp Shanghai with Drupal6 (20)
Build Drupal Camp Shanghai with Drupal6
- 2. Code my Drupal 6 site
What’s in this session
Setup a basic website with Drupal 6
Build some custom modules
Discussion
- 6. Code my Drupal 6 site
Setup a clean Drupal 6
Your directory, database...
Install
Play with modules
Setup Profile
RSVP, Organization, URL
- 8. Code my Drupal 6 site
Requirements
Content types
Session, Sponsor
Pages / Blocks
Session list, Sponsor list, Attendee list
Random sponsor logo
- 9. Code my Drupal 6 site
Contributed Modules
Must have
Devel
Recommend
BUEditor
- 10. Code my Drupal 6 site
Coding Guidelines
Keep simple
Always find examples
Core, Handbook...
Use existing functions & hooks
Read Documents
- 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. Code my Drupal 6 site
Build a Content Type
“Session”
Subject, Description, Presenter
Implement hooks
Display (theme) your fields (nodes)
- 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. 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. Code my Drupal 6 site
Another page
Sponsors list
Theme sponsor logo
Dealing with images
image.inc
- 16. Code my Drupal 6 site
Site support module
A specific module for one site
Best practice
Attendees list - using profile names