SlideShare una empresa de Scribd logo
1 de 20
Descargar para leer sin conexión
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

   Discussion
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

    Setup Profile

      RSVP, Organization, URL
BUILD MY MODULES
Code my Drupal 6 site


Requirements
Content types

  Session, Sponsor

Pages / Blocks

  Session list, Sponsor list, Attendee list

  Random sponsor logo
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 functions & hooks

  Read Documents
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
Code my Drupal 6 site


Build a Content Type
   “Session”

     Subject, Description, Presenter

   Implement hooks

   Display (theme) your fields (nodes)
Code my Drupal 6 site


Another type
“Sponsor”

  Name, Description, URL, Logo

URL

  hook_validate, valid_url

Logo

  Img module; Image functions later
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
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 - using profile names
Code my Drupal 6 site


      What else

I18n

...
Code my Drupal 6 site


Conclusion of coding


   Drupal as framework
DISCUSSION
THANK YOU


     Makara Wang

Más contenido relacionado

Destacado

Coaching as a modern tool for development of HR
Coaching as a modern tool for development of HRCoaching as a modern tool for development of HR
Coaching as a modern tool for development of HRMartin Prodaj
 
7 kľúčových princípov pre úspešný koučing
7 kľúčových princípov pre úspešný koučing7 kľúčových princípov pre úspešný koučing
7 kľúčových princípov pre úspešný koučingMartin Prodaj
 
Time management_prezentacia
Time management_prezentaciaTime management_prezentacia
Time management_prezentaciaMartin Prodaj
 
Performance and scalability with drupal
Performance and scalability with drupalPerformance and scalability with drupal
Performance and scalability with drupalRonan Berder
 
Speeding up your Drupal site
Speeding up your Drupal siteSpeeding up your Drupal site
Speeding up your Drupal siteRonan Berder
 
Academia Excellent_Kompetenčé modely
Academia Excellent_Kompetenčé modelyAcademia Excellent_Kompetenčé modely
Academia Excellent_Kompetenčé modelyMartin Prodaj
 
Sales skills and coaching
Sales skills and coachingSales skills and coaching
Sales skills and coachingMartin Prodaj
 
13 steps to a faster jekyll website
13 steps to a faster jekyll website13 steps to a faster jekyll website
13 steps to a faster jekyll websiteRonan Berder
 
Organisasi Dan Manajemen
Organisasi Dan ManajemenOrganisasi Dan Manajemen
Organisasi Dan ManajemenJuni S
 

Destacado (14)

Coaching as a modern tool for development of HR
Coaching as a modern tool for development of HRCoaching as a modern tool for development of HR
Coaching as a modern tool for development of HR
 
Coaching on NDK
Coaching on NDKCoaching on NDK
Coaching on NDK
 
7 kľúčových princípov pre úspešný koučing
7 kľúčových princípov pre úspešný koučing7 kľúčových princípov pre úspešný koučing
7 kľúčových princípov pre úspešný koučing
 
Time management_prezentacia
Time management_prezentaciaTime management_prezentacia
Time management_prezentacia
 
JSON all the way
JSON all the wayJSON all the way
JSON all the way
 
Performance and scalability with drupal
Performance and scalability with drupalPerformance and scalability with drupal
Performance and scalability with drupal
 
Speeding up your Drupal site
Speeding up your Drupal siteSpeeding up your Drupal site
Speeding up your Drupal site
 
Views 3
Views 3Views 3
Views 3
 
Academia Excellent_Kompetenčé modely
Academia Excellent_Kompetenčé modelyAcademia Excellent_Kompetenčé modely
Academia Excellent_Kompetenčé modely
 
Sales skills and coaching
Sales skills and coachingSales skills and coaching
Sales skills and coaching
 
Time management
Time managementTime management
Time management
 
Emocna inteligencia
Emocna inteligenciaEmocna inteligencia
Emocna inteligencia
 
13 steps to a faster jekyll website
13 steps to a faster jekyll website13 steps to a faster jekyll website
13 steps to a faster jekyll website
 
Organisasi Dan Manajemen
Organisasi Dan ManajemenOrganisasi Dan Manajemen
Organisasi Dan Manajemen
 

Similar a Build Drupal Camp Shanghai with Drupal6

Introduction of drupal7 by ayushi infotech
Introduction of drupal7 by ayushi infotechIntroduction of drupal7 by ayushi infotech
Introduction of drupal7 by ayushi infotechMandakini Kumari
 
Drupal 7 Search Engine Optimisation
Drupal 7 Search Engine OptimisationDrupal 7 Search Engine Optimisation
Drupal 7 Search Engine OptimisationPeter Macinkovic
 
Beginner's guide to drupal
Beginner's guide to drupalBeginner's guide to drupal
Beginner's guide to drupalmayank.grd
 
Drupal Roadmap 2010
Drupal Roadmap 2010Drupal Roadmap 2010
Drupal Roadmap 2010kathyhh
 
Drupal 6x Installation
Drupal 6x Installation Drupal 6x Installation
Drupal 6x Installation Micky Metts
 
"Paragraphs are more powerful than you can expect" from Vasily Jaremchuk for ...
"Paragraphs are more powerful than you can expect" from Vasily Jaremchuk for ..."Paragraphs are more powerful than you can expect" from Vasily Jaremchuk for ...
"Paragraphs are more powerful than you can expect" from Vasily Jaremchuk for ...DrupalCamp Kyiv
 
Introduction To Drupal
Introduction To DrupalIntroduction To Drupal
Introduction To DrupalLauren Roth
 
SynapseIndia drupal presentation on drupal best practices
SynapseIndia drupal  presentation on drupal best practicesSynapseIndia drupal  presentation on drupal best practices
SynapseIndia drupal presentation on drupal best practicesSynapseindiappsdevelopment
 
Drupal training-by-ruchiwebsolutions
Drupal training-by-ruchiwebsolutionsDrupal training-by-ruchiwebsolutions
Drupal training-by-ruchiwebsolutionsphp2ranjan
 
Lazy Coder Camp Edition 1
Lazy Coder Camp Edition 1Lazy Coder Camp Edition 1
Lazy Coder Camp Edition 1phpfactory
 
Workflow Essentials for Web Development
Workflow Essentials for Web DevelopmentWorkflow Essentials for Web Development
Workflow Essentials for Web DevelopmentXavier Porter
 
Apache Solr search for Drupal. Ievgen Kartakov.
Apache Solr search for Drupal. Ievgen Kartakov.Apache Solr search for Drupal. Ievgen Kartakov.
Apache Solr search for Drupal. Ievgen Kartakov.DrupalCampDN
 
Drupal: an Overview
Drupal: an OverviewDrupal: an Overview
Drupal: an OverviewMatt Weaver
 
Drupal 7x Installation - Introduction to Drupal Concepts
Drupal 7x Installation - Introduction to Drupal ConceptsDrupal 7x Installation - Introduction to Drupal Concepts
Drupal 7x Installation - Introduction to Drupal ConceptsMicky Metts
 

Similar a Build Drupal Camp Shanghai with Drupal6 (20)

Introduction of drupal7 by ayushi infotech
Introduction of drupal7 by ayushi infotechIntroduction of drupal7 by ayushi infotech
Introduction of drupal7 by ayushi infotech
 
Drupal 7 Search Engine Optimisation
Drupal 7 Search Engine OptimisationDrupal 7 Search Engine Optimisation
Drupal 7 Search Engine Optimisation
 
Beginner's guide to drupal
Beginner's guide to drupalBeginner's guide to drupal
Beginner's guide to drupal
 
Drupal Roadmap 2010
Drupal Roadmap 2010Drupal Roadmap 2010
Drupal Roadmap 2010
 
Drupal 6x Installation
Drupal 6x Installation Drupal 6x Installation
Drupal 6x Installation
 
"Paragraphs are more powerful than you can expect" from Vasily Jaremchuk for ...
"Paragraphs are more powerful than you can expect" from Vasily Jaremchuk for ..."Paragraphs are more powerful than you can expect" from Vasily Jaremchuk for ...
"Paragraphs are more powerful than you can expect" from Vasily Jaremchuk for ...
 
Drupal - Introduction to Drupal Creating Modules
Drupal - Introduction to Drupal Creating ModulesDrupal - Introduction to Drupal Creating Modules
Drupal - Introduction to Drupal Creating Modules
 
Design to Theme @ CMSExpo
Design to Theme @ CMSExpoDesign to Theme @ CMSExpo
Design to Theme @ CMSExpo
 
Introduction To Drupal
Introduction To DrupalIntroduction To Drupal
Introduction To Drupal
 
SynapseIndia drupal presentation on drupal best practices
SynapseIndia drupal  presentation on drupal best practicesSynapseIndia drupal  presentation on drupal best practices
SynapseIndia drupal presentation on drupal best practices
 
Drupal training-by-ruchiwebsolutions
Drupal training-by-ruchiwebsolutionsDrupal training-by-ruchiwebsolutions
Drupal training-by-ruchiwebsolutions
 
Drupal SEO
Drupal SEODrupal SEO
Drupal SEO
 
Drupal Bootcamp Mcn2008
Drupal Bootcamp   Mcn2008Drupal Bootcamp   Mcn2008
Drupal Bootcamp Mcn2008
 
Lazy Coder Camp Edition 1
Lazy Coder Camp Edition 1Lazy Coder Camp Edition 1
Lazy Coder Camp Edition 1
 
Workflow Essentials for Web Development
Workflow Essentials for Web DevelopmentWorkflow Essentials for Web Development
Workflow Essentials for Web Development
 
Apache Solr search for Drupal. Ievgen Kartakov.
Apache Solr search for Drupal. Ievgen Kartakov.Apache Solr search for Drupal. Ievgen Kartakov.
Apache Solr search for Drupal. Ievgen Kartakov.
 
Web Designing
Web DesigningWeb Designing
Web Designing
 
Web Designing
Web Designing Web Designing
Web Designing
 
Drupal: an Overview
Drupal: an OverviewDrupal: an Overview
Drupal: an Overview
 
Drupal 7x Installation - Introduction to Drupal Concepts
Drupal 7x Installation - Introduction to Drupal ConceptsDrupal 7x Installation - Introduction to Drupal Concepts
Drupal 7x Installation - Introduction to Drupal Concepts
 

Último

Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 

Último (20)

Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 

Build Drupal Camp Shanghai with Drupal6

  • 1. CODE MY WEBSITE WITH DRUPAL 6 Makara Wang
  • 2. Code my Drupal 6 site What’s in this session Setup a basic website with Drupal 6 Build some custom modules Discussion
  • 3. Code my Drupal 6 site Why Drupal 6
  • 4. Code my Drupal 6 site Why Code Extensible Version control ...
  • 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
  • 17. Code my Drupal 6 site What else I18n ...
  • 18. Code my Drupal 6 site Conclusion of coding Drupal as framework
  • 20. THANK YOU Makara Wang