Drupalcon Denver Keynote State of Drupal

Todays Drupalcon Denver keynote by Dries Buytaert and all other livestreams are available here:

Loading field_collection values in templates

Field collection is a great module to have some sort of a bundle of fields in a form. Thus you can build a form field with mulitple values that itself has more than one fields attached. Maybe more about this module in another blogpost.

If you want to load the values of a field collection entity (just if you need it in an template for example) you can use entity_metadata_wrapper():

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:

$external_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:


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

$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:

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.

Drupalcon London

Drupalcon London Badge

Drupalcon London is on!

... and we are proud to be part of it!

The session programm looks awesome, so there will be plenty of news and cool stuff to write about.

In the meantime you can follow crizzirc on Twitter for some updates.

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.

Drupal 7 Theming and the image Path

In Drupal 7 there is a filefield in core now, there is also something like imagecache in Drupal 6 called image styles.

When it comes to theming you will soon find out that the image data stored in the node array is completely different than before. For example there is no filepath available.

Display image fields in templates

First and recommended solution would be to display the field as it is with the render() function:

Drupalcon live broadcast

We are going to live broadcast some interesting sessions here at Drupalcon Copenhagen.

- Wolfgang Ziegler / Klaus Purer: About the Rules Ecosystem
- Mark Boulton: Designing UI with Seven
- Olivier Jacque: Introduction to internationalization in Drupal 7

Stay tuned! internet solutions relaunch internet solutions logo

Finally the website of internet solution has been redesigned and is running Drupal 7 already.

New features are internationalization, a blog section and modern CSS based on 960 (yeah, we canceled support for Internet Explorer 6!).

In next days we are going to add some more content.


Powered by Drupal7