Drupal: Reusing functionality

1,413 views

Published on

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
1,413
On SlideShare
0
From Embeds
0
Number of Embeds
31
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Drupal: Reusing functionality

  1. 1. Reusing functionality with Drupal Modules, Features, Install profiles and Distributions
  2. 2. A module is one brick
  3. 3. Modules• Small and large bricks• More then 6000+ available• Code packages downloaded from d.o or drupalmodules.com
  4. 4. Functionality• Module ≠ functionality, with Drupal most of the time data = functionality – e.g. Views, content types, fields, variables, comment• Most CMS have a News module, Drupal has: – Module Node/CCK: Content type news – Module Views: Multiple content listings – Module Taxonomy: Categorise news – Module Comment: Commenting on news articles• Creating this news functionality takes configuration every time!
  5. 5. Features: multiple bricks already assembled
  6. 6. Features• “A feature is a collection of Drupal entities that, taken together, satisfy a certain use-case.”• Multiple bricks assembled – e.g. A news feature as described earlier• Technically its serialized data in a Drupal module.• Build by Developmentseed
  7. 7. Features• Features have a distributed system. Vendors are encouraged to setup a feature server.• So where can I find them? – http://drupal.org/taxonomy/term/11478 – Vendor pages like http://code.developmentseed.org• How can I build them? – Http://drupal.org/project/features – http://drupal.org/node/580026 – Check out modules: Ctools, Boxes, Context, Strongarm, Spaces
  8. 8. Install profiles: automated system to assemble bricks and pre- assembled bricks
  9. 9. Install profiles• Install profile: a list of modules, features and themes to install and additional configuration to be set. – Limited to projects available on d.o• Drupals packaging script translates a profile into a downloadable package including Drupal core, modules and themes.
  10. 10. Install profiles• 118 install profiles available – http://drupal.org/project/installation+profiles• Creating a install profile: – http://drupal.org/node/159730 – profilename_profile_modules(), profilename_profile_details(), profilename_profile_final()• Or Drush make files: – http://drupal.org/project/drush_make – http://drupal.org/node/642116
  11. 11. Distributions: assembled packages
  12. 12. Distributions• Distributions are packages similar to packaged install profiles. Differences: – Downloadable from vendor pages. – Modules/themes do not need to be on d.o – Core hacks are possible!• Find them at: http://drupaldistrowatch.com/• Create them by packaging your total codebase.
  13. 13. Questions?• Email: r.muilwijk@madcap.nl• Linkedin: rmuilwijk• Twitter: rmuilwijk

×