CTools – toolbox for developers. Yuri Gerasimov.

Post on 08-May-2015

1.537 views 2 download

Transcript of CTools – toolbox for developers. Yuri Gerasimov.

CTools – toolbox for developers

Yuri Gerasimov

http://donetsk.drupal.ua

CTools – toolbox for developers

email: yuri.gerasimov@gmail.comtwitter: ygerasimovskype: yuriy_gerasimov d.o.: http://drupal.org/user/257311

Agenda

● Javascripts of ctools● Object caching● Multistep forms● Plugins

Autosubmit javascript

Dropdown javascript

Object cache

Multistep forms

Multistep forms

Multistep forms

● Ajax callbacks. Don't forget ctools wrapper

Make your module extendable by other modules

● Have own system of hooks● Define your own plugins

Define own plugin type

Use plugin

Use plugin

Plugin interface class

Plugin implementation

Plugin implementation

Plugin impelementation

Plugin implementation

Bad implementation

Resources

● ctools_ajax_sample module● http://www.slideshare.net/Digithoughts/ctools-

presentation

CTools – toolbox for developers

email: yuri.gerasimov@gmail.comtwitter: ygerasimovskype: yuriy_gerasimov d.o.: http://drupal.org/user/257311