Published on

It is basic Drupal presentation which is given by one of our Drupal developer to the other developers who don't know Drupal CMS.

  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide


  1. 1. The Born And Biography<br /><ul><li> What is Drupal?
  2. 2. What is CMS?
  3. 3. Drupal was born by experimental effort of Dries Bytrate and its friends.
  4. 4. It was named by combining two words drop and pal.
  5. 5. It have earned the good name in worlds most popular, stable and well built CMS in few years.
  6. 6. Webware 100 - 2007, 2008, 2009
  7. 7. Packt Publishing 2007 Best Overall Open Source CMS
  8. 8. Packt Publishing 2008 Best Overall Open Source CMS.
  9. 9. Packt Publishing 2008 Best PHP Open Source CMS.
  10. 10. 2009 best Open Source CMS Award
  11. 11. Hall of Fame Award in the 2009.</li></li></ul><li>How Its Different Then Other CMS<br />Initial package size. ( near about 1.5 Mb with is 1/10th then popular joomla CMS)<br />Light weight (You will feel it when work).<br />Large quantity of contributed modules are available.<br /> You can find lot lotlot ready made modules on drupal.org if you don’t which saves lot of time.<br />Follows strict MVC structure.<br /> If you want to use this CMS without care of coding standards then please be away. <br /> This CMS is not built for you then.<br />Perl script support for checking your modules coding standards.<br /> You can check your code for coding standard using Perl script provided with drupal. I think this is for Linux based plate form only. Following is the command to check your script.<br />Multiple site with single package is possible which reduce disk usage as well as resource usage.<br />Well built menu section.<br />Reliable and extended user permission management.<br />Easy to extend core functionality without affecting core code.<br />Database Switching.<br />Compatible with MySql, PGSQL and SQLLite.<br /> Not need to change your queries when you change data type. Nice database abstraction layer.<br />
  12. 12. Compitibility<br />Operating Sytems :<br /><ul><li>Linux.
  13. 13. windows.
  14. 14. Mac OS X.
  15. 15. BSD.
  16. 16. Solaris.</li></ul>Programming langauge : PHP<br />Javascript library :<br /><ul><li>Jquery .
  17. 17. Prototype.
  18. 18. AHAH ( Its drupal own built functionality base on javascript and ajax. This is part of drupal form api.)</li></ul>lets see example of ahah.<br />Databases<br /><ul><li>Mysql
  19. 19. PGSQL
  20. 20. SQLLite ( after release of drupal 7).</li></ul>Web servers : <br /><ul><li>Apache.
  21. 21. IIS.
  22. 22. Lighttpd.</li></li></ul><li>Directory Nest<br />
  23. 23. Directory Nest<br />files folder doesn’t ship with Drupal by default, but it is needed if you plan on using a custom logo, enabling user avatars, or uploading other media associated with your new site.<br />The includes folder contains libraries of common functions that Drupal uses. We don’t need to add anything here its core drupal directory.<br />The misc folder stores JavaScript and miscellaneous icons and images available to a stock Drupalinstallation.<br />The modules folder contains the core modules, with each module in its own folder. It is best not to touch anything in this folder.<br />The profiles folder contains different installation profiles for a site. If there are other profiles besides the default profile in this subdirectory, Drupal will ask you which profile you want to install when first installing your Drupal site. The main purpose of an installation profile is to enable certain core and contributed modules automatically. An example would be an e-commerce profile that automatically sets up Drupal as an e-commerce platform.<br />The scripts folder contains scripts for checking syntax, cleaning up code, and handling special cases with cron. It is not used within the Drupal request life cycle; these are shell and Perl utility scripts.<br />The sites directory (see Figure 1-5) contains your modifications to Drupal in the form of settings, modules, and themes. When you add modules to Drupal from the contributed modules repository or by writing your own, they go into sites/all/modules. This keeps all your Drupal modifications within a single folder. Inside the sites directory will be a subdirectory named default that holds the default configuration file for your Drupalsite settings.php. The default directory is typically copied and renamed to the URL of your site, so your settings file would be at sites/www.example.com/settings.php.<br />The themes folder contains the template engines and default themes for Drupal.<br />
  24. 24. Site Directory Nest<br />
  25. 25. Installing and core functionalities<br />Lets see demo station for it.<br />
  26. 26. Extend The Drupal<br />Drupal have very good core features as we seen.<br />But there is characteristic of being human that they always try to expand the things(Only humans).<br />Ok so we may want to expand it too! <br />There are main two ways to extend Drupal.<br />By making modules we can extend functionality of Drupal.<br />By making themes we can increase ( or may decrease if not created well) the beauty of Drupal site.<br />First we will learn how to create modules then we go for theme creation so ,<br /> Friends make your weapons ready and keep your brain engine running to raise questions.<br />
  27. 27. Hook ?????<br />There is no war without weapons my friends. <br />So In this war your weapon is HOOK.<br />So, what the hook may be?<br />Speaking in simple words, It’s the prefix for all function we will write in our module. <br />For convenience intelligent programmers keeps it same as name of our module. <br />And hope being intelligent we will not rename it. <br />Yes you will ask can I change it to something else? <br />Why not sure, you can change it. But then you have to change one parameter in hook_info function (we write this function in .module file). So, we can change is at our risk. It may fail your module if not taken care!<br />So, first we will write a module and then answer how we can change name of hook. <br />
  28. 28. Module Structure<br />There are main three files for module.<br /><ul><li><module name>.info [Required]</li></ul> This file is used to describe the module.<br /> It submit its decriptional info to Drupal engine.<br /> If you don’t have written this file you will not get your module listed on installation <br /> page.<br /><ul><li><module name>.install [Optional]</li></ul> This file will be called at install , update and uninstall instances of the module.<br /> We can specify additional process during this instances by coding this file.<br /> This is optional. If not coded Drupal will do normal install , uninstall or update of module.<br /><ul><li><module name>.module [Optional]</li></ul> This file will contain all other code For forms, validation, listing data, view data as well as insert, update, delete the form data. <br /> So this is our war station where we are going to fight…! <br /> [Show the module live and its structure].<br />
  29. 29. Thanks!<br />