drupal

Drupalcon Denver Keynote State of Drupal

Todays Drupalcon Denver keynote by Dries Buytaert and all other livestreams are available here: http://denver2012.drupal.org/live




Load external JavaScript Files in Drupal 6

Drupal 6 doesn't allow you to use drupal_add_js() to load external JavaScript Files (Drupal 7 does by the way!). This is a pity as js aggregation (see admin/settings/performance) wouldn't work for external files this way.

But there is a little hack that helps:

<?php
$external_js = 'http://www.example.com/javascript.js';
drupal_add_js('document.write(unescape("%3Cscript src=\''. $external_js .'\' type=\'text/javascript\'%3E%3C/script%3E"));', 'inline');
?>




Drupal theming: Get field values in Drupal 7

Drupal 7 has another array structure for storing field values in $node. There is a new array key for the language.
For example:

<?php
$node->field_your_field['en'][0]['value'];
?>

 
This can be quite useful but makes it difficult to access the right data.
So here is a handy solution:

<?php
$items = field_get_items('node', $node, 'field_yourfield', $node->language);
?>

 
You can leave the $node->language argument empty. If done the current language will be called automatically:




Externe JavaScript Files in Drupal 6 einbinden

Eine weitere Ausgabe aus unserer Folge "Drupal Tipps und Tricks".

In Drupal Version 6 ist es leider nicht vorgesehen externe JavaScript Files per drupal_add_js() einbinden zu können (im Unterschied zu Drupal 7). Das ist deshalb sehr schade weil so das File nicht aggregiert/minimiert werden kann (siehe admin/settings/performance), was wiederum für die Performance oft nicht unerheblich ist.

Mit einem kleinen Hack kann man dies aber trotzdem erreichen:




State of Drupal - Drupalcon London Keynote by Dries Buytaert and more

Drupalcon Keynote Audience
During Drupalcon's first keynote Dries Buytaert presented the current state of Drupal. Here are some of it's most interesting facts:

  • Drupal's grow seems to continue, especially in the field of large media organizations (Sony, Universal, NBC), but also in education (39% of all .edu websites run Drupal) and technology (Twitter, Cern, Intel, Symantec).
  • Another interesting fact is that Drupal is growing faster in Europe than in North America.
  • Dries thinks we failed to communicate the benefits of Drupal 7 well enough.



Die aktuellen Hacker-Attacken, Webseiten-Security und OpenSource

Be Safe

Die aktuellen Hacker-Attacken (oder auch Cracker-Attacken) auf die Webseiten von SPÖ und FPÖ in der Nacht auf Freitag sind Anlaß zu ein paar Gedanken zum Thema Security und Webseiten-Sicherheit.




Design in the Drupal Universe - Follow-up report from DrupalDesignCamp Prague 2010

drupaldesigncamp prague

Follow-up report from the first European DrupalCamp about frontend Drupal development.




Design im Drupal Universum - Nachbericht vom DrupalDesignCamp Prag 2010

drupaldesigncamp prague

Nachbericht vom ersten europäischem DrupalCamp rund um Frontend Entwicklung.




Drupal 7 Mehrsprachigkeit

Bzgl. dem aktuellen Stand über Mehrsprachigkeit in Drupal 7 und Neuerungen ist folgende Drupalcon Session von Kopenhagen empfehlenswert: http://www.archive.org/details/IntroductionToI18NInDrupal7




Subscribe to RSS - drupal

Powered by Drupal7