Drupal 7 API

How Drupal 7 Fields are changing the way you write modules

Presenter: 
Damien Tournoud
Video: 
See video
»

AJAX and Javascript in Drupal7

Presenter: 
Randy Fay, Rob Loach, Katherine Bailey
Video: 
See video
Description: 

Lots of work has gone into AJAX (formerly AHAH) and Javascript in Drupal 7.

AJAX is WAY easier to use now, and there are lots of new Javascript/JQuery features, including JQuery UI in core. Our goal is that you'll walk out of this session no longer afraid of AJAX in Drupal.

What is AJAX? AJAX was called AHAH just yesterday (D6), and in the Drupal context it most often means the ability for Drupal forms to dynamically refresh without a page load. So it means cooler forms that don't have to press the submit button all the time - they can dynamically respond to user input.

Who is this for? Any developer or themer who knows some PHP and a little Javascript. We'll aim to make the AJAX portion accessible to anybody who has ever seen the Drupal forms API, and the javascript portion should be accessible to anyone who has used or wants to use Javascript in Drupal.

In this talk we'll cover:

How to use AJAX Forms. It's easy now.
Example: Dependent dropdowns
Javascript usage and features
Module scaffolding and best practices
Theme scaffolding and best practices
Some nifty Javascript use cases
The Examples module's AJAX and Javascript examples
Drupal 7 Javascript coding changes from D6
Subtopics that will be addressed:

jQuery UI
AJAX Links
Javascript States system
Here's a link to our slides

Some related sessions you may be interested in:

Roger Lopez: Leveraging the Chaos tool suite for module development. Roger will cover the CTools AJAX Command Framework, which has been incorporated into Drupal 7 AJAX but won't be covered in any detail in this session.
kkaefer: Instant Dynamic Forms with #states

»

Page render drill down in Drupal 7

Video: 
See video
Description: 

http://sf2010.drupal.org/conference/sessions/page-render-drill-down-drup...

Join Moshe Weitzman for deep dive into the page render system for Drupal 7. We'll learn how to build and theme a standard page callback. Then we'll evaluate various alternatives for modifying the page, to meet some hypothetical user experience requirements. Learn more about:

Build a drupal_render() array in a menu callback. Learn to differentiate between key properties such as #type, #theme, #theme_wrappers, #pre_render, ...
Change the $page during hook_page_alter(). Move some blocks, alter text, etc.
Make changes during the preprocess and process stages of page themeing
Use theme_hook_suggestions to route themeing to alternate templates and theme functions.
Alter the theme registry for hostile takeover of theme hooks.

»
Syndicate content