DrupalCafe7 CTools AJAX responder
-
Upload
yuriy-gerasimov -
Category
Technology
-
view
4.720 -
download
0
Transcript of DrupalCafe7 CTools AJAX responder
CTools AJAX responder
Yuriy GerasimovMadcap [email protected]
Ctools consists of
* Plugins -- tools to make it easy for modules to let other modules implement plugins from .inc files.* Exportables -- tools to make it easier for modules to have objects that live in database or live in code, such as 'default views'.* AJAX responder -- tools to make it easier for the server to handle AJAX requests and tell the client what to do with them.* Form tools -- tools to make it easier for forms to deal with AJAX.* Object caching -- tool to make it easier to edit an object across multiple page requests and cache the editing work.* Contexts -- the notion of wrapping objects in a unified wrapper and providing an API to create and accept these contexts as input.* Modal dialog -- tool to make it simple to put a form in a modal dialog.* Dependent -- a simple form widget to make form items appear and disappear based upon the selections in another item.* Content -- pluggable content types used as panes in Panels and other modules like Dashboard.* Form wizard -- an API to make multi-step forms much easier.* CSS tools -- tools to cache and sanitize CSS easily to make user-input CSS safe.
hook_menu
Drupal ProDevelopment
Drupal ProDevelopment
Drupal ProDevelopment
Page callback
AJAX menu callback
Commands
replace (ctools_ajax_command_replace)
prepend (ctools_ajax_command_prepend)
append (ctools_ajax_command_append)
after (ctools_ajax_command_after)
before (ctools_ajax_command_before)
remove (ctools_ajax_command_remove)
changed (ctools_ajax_command_change)
alert (ctools_ajax_command_alert)
css (ctools_ajax_command_css)
attr (ctools_ajax_command_attr)
settings (ctools_ajax_command_settings)
data (ctools_ajax_command_data)
redirect (ctools_ajax_command_redirect)
reload (ctools_ajax_command_reload)
submit (ctools_ajax_command_submit)
Drupal 7 ajax link
Drupal 7 menu callback
D7 commands
Resources
D6http://zroger.com/node/31
http://zroger.com/node/30
D7http://api.drupal.org/api/drupal/includes--ajax.inc/group/ajax/7
http://api.drupal.org/api/drupal/includes--ajax.inc/group/ajax_commands/7
CTools AJAX responder
Yuriy GerasimovMadcap [email protected]
A