SlideShare uma empresa Scribd logo
1 de 20
Baixar para ler offline
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

Mais conteúdo relacionado

Destaque

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
 

Destaque (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
 

Semelhante 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
 

Semelhante 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

Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
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
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
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
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
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
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 

Último (20)

Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
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
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
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
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
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
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 

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