Drupal 6: Aufbau/API/Best practices
Upcoming SlideShare
Loading in...5
×
 

Drupal 6: Aufbau/API/Best practices

on

  • 1,251 views

Was unterscheidet Drupal von anderen Content-Management-Systemen? Wie ist es aufgebaut? Wie kann man neue Module entwickeln? Daniel Hallmann zeigt wie man Drupal 6 sinnvoll einsetzen kann und ...

Was unterscheidet Drupal von anderen Content-Management-Systemen? Wie ist es aufgebaut? Wie kann man neue Module entwickeln? Daniel Hallmann zeigt wie man Drupal 6 sinnvoll einsetzen kann und präsentiert die gängigsten "best practices".

Statistics

Views

Total Views
1,251
Views on SlideShare
1,248
Embed Views
3

Actions

Likes
1
Downloads
10
Comments
0

1 Embed 3

http://www.slideshare.net 3

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Drupal 6: Aufbau/API/Best practices Drupal 6: Aufbau/API/Best practices Presentation Transcript

    • Drupal 6 Aufbau/API/Best practicesDaniel Hallmann I 14. Januar 2010
      http://www.ponc0.com/gambar/drupal.png
    • Daniel Hallmann Dipl.-Inf. (FH)
      Developer
      Seit zwei Jahren bei Mayflower tätig
      Schwerpunkte: Entwicklung unterschiedlicher Kundenprojekte mit PHP, JS und MySQL
      Referent
    • Bereiche
      Struktur
      API
      Hooks
      Module
      Best Practice
    • Fakten
      http://buytaert.net/sites/buytaert.net/files/images/blog/dries-buytaert-large-bw.jpg
    • Vergleich
      Treffer bei Google
      Joomla91.800.000Drupal32.000.000
      TYPO3 4.220.000
      Module
      Drupal4000
      TYPO3 1700
      Joomla437
    • Struktur
      Internet
      modules
      functions/hooks
      Core
      Frontend
      modules
      includes
      sites
      Backend
    • API
      Hooks/Module
      DB Abstraction Layer
      Form/Menu System
    • Theming
    • Hooks
    • Module
    • Beispiel
    • function name_registration_form_alter(&$form, &$form_state, $form_id)
      {
      switch ($form_id) {
      case 'user_register':
      $firstname_field = variable_get('name_registration_fn_field', 'name_registration_fn_field');
      $lastname_field = variable_get('name_registration_ln_field', 'name_registration_ln_field');
      ….
      $form['account'][$firstname_field]['#weight'] = -99;
      $form['account'][$firstname_field]['#value'] = t('Type in here a valid first name');;
      $form['account'][$firstname_field]['#attributes']['OnClick'] = 'this.value=""';

      array_unshift($form['#validate'], 'name_registration_user_register_validate');
      }
    • functionname_registration_user_register_validate($form, &$form_state)
      {
      $firstname_field = variable_get('name_registration_fn_field', 'name_registration_fn_field');
      $firstname = $form_state['values'][$firstname_field];

      if(!eregi ("(^[a-z0-9._-]+)$",$firstname)) {
      // Change output of messages here - first name error
      form_set_error($firstname_field, t(variable_get('name_registration_msg_a', 'Only numbers and characters are valid.')));
      }

      }
    • Tools
    • Drupal 7
      Head
      Testing Framework
      WYSIWYG
      Security
      Usability
      Performance
    • Links
      drupal.org
      drupalcontrib.org
      drupalcenter.de
      api.drupal.org
      groups.drupal.org/münchen
      drupal-dev-days.de
    • Daniel Hallmann
      daniel.hallmann@mayflower.de
      +49 (89) 24 20 54 - 1135
      Mayflower GmbH
      Mannhardtstrasse 6
      80538 München
      Referent