Drupal 6 in a nutshell

3,349 views

Published on

A good CMS/framework for Rapid Web Application Development

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
3,349
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
18
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Drupal 6 in a nutshell

  1. 1. Drupal 6 in a nutshell <ul><li>Topics </li></ul><ul><li>Drupal Basics Drupal page Serve Mechanism Drupal Menu System Writing a Module Drupal theme system </li></ul><ul><li>Drupal Beyond the Basics Working with Databases Working with Nodes Working with files How to define a page Form API Drupal hook system(some hooks) Useful links </li></ul>
  2. 2. Drupal Page serving mechanism <ul><li>Index.php does all the work(don’t panic, it only loads the necessary files) </li></ul><ul><li>The bootstrap process </li></ul><ul><li>Initialize the configuration </li></ul><ul><li>Early page cache </li></ul><ul><li>Initialize the Database, session </li></ul><ul><li>Late page cache </li></ul><ul><li>Determine the language and path (menu system) </li></ul><ul><li>Serve the page </li></ul>
  3. 3. Menu System <ul><li>Checks the site is offline or not </li></ul><ul><li>Rebuild the menu if necessary </li></ul><ul><li>Check the access permissions </li></ul><ul><li>Identity the callback function </li></ul><ul><li>Return the output form the fucntion </li></ul>
  4. 4. Writing a module <ul><li>Create module under sites/all/modules </li></ul><ul><li>Needs three files yourmodule.info yourmodule.module, youremodule.install </li></ul>
  5. 5. Theme system <ul><li>Template engines smarty, phptal, phptemplate </li></ul><ul><li>Create a theme Create a normal html file Create a css file Create an info file Rename files according to drupal Put variables to your tpl file. Create additional files </li></ul><ul><li>Template file page.tpl.php, node.tpl.php etc </li></ul><ul><li>Overriding theming fucntions </li></ul>
  6. 6. Working with databases <ul><li>Define database information </li></ul><ul><li>db_query </li></ul><ul><li>Manipulate the query in other modules </li></ul><ul><li>Connecting to multiple databases </li></ul>
  7. 7. Working with nodes <ul><li>Create a node module </li></ul><ul><li>hook_node_info() </li></ul><ul><li>Hook_form </li></ul><ul><li>Hook_insert </li></ul><ul><li>Hook_update </li></ul><ul><li>Hook_delete </li></ul><ul><li>Cck module </li></ul>
  8. 8. Working with files <ul><li>Public private files </li></ul><ul><li>Hook_file_download </li></ul><ul><li>Upload module </li></ul><ul><li>Image module ,cck image module for image galleries </li></ul>
  9. 9. Define a page <ul><li>Hook_help </li></ul><ul><li>Hook_menu </li></ul><ul><li>Callback function </li></ul>
  10. 10. Form Api <ul><li>Form work flow </li></ul><ul><li>Hook_form </li></ul><ul><li>Form elements </li></ul><ul><li>Validate function </li></ul><ul><li>Submit function </li></ul><ul><li>Redirecting after submit </li></ul><ul><li>Theme a form </li></ul><ul><li>Changing form handlers </li></ul>
  11. 11. Some Hooks <ul><li>Hook_form_alter </li></ul><ul><li>Hook_node_api </li></ul><ul><li>Hook_block </li></ul><ul><li>Hook_node_operations </li></ul><ul><li>Hook_init </li></ul><ul><li>Hook_perm </li></ul><ul><li>Hook_perm </li></ul><ul><li>Hook_user </li></ul>
  12. 12. Useful links <ul><li>http://api.drupal.org/api </li></ul><ul><li>http://drupal.org/handbooks </li></ul><ul><li>http://drupal.org/contributors-guide </li></ul><ul><li>http://drupal.org/node/508 </li></ul><ul><li>http://drupal.org/theme-guide </li></ul><ul><li>http://drupal.org/handbook/customization/videocasts </li></ul><ul><li>http://www.lullabot.com/ </li></ul><ul><li>http://developers.slashdot.org/ </li></ul>

×