The Chaos Tools Suite

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    5 Favorites

    The Chaos Tools Suite - Presentation Transcript

    1. The Chaos Tools Suite
      DrupalCon Paris, Sep 2009
    2. WTF?
      Considered a sub-core by many.
      Not as well-tested as core, but more agile.
      I don’t have to argue over shed colors.
      Collection of important API tools developed based upon the needs of Views and Panels.
      Starting to get a small cadre of devs who are helping patch and expand the tools.
      Two pieces went into core.
    3. Form wizards
      AJAX
      Modals
      Exportables
      Collapsible DIV
      CSS caching and sanitization
      Plugins
    4. Form Wizards
      Start off with an array to describe the form
      Each step within the form is a completely independent form.
      Uses server side caching to keep data between steps.
      Handles Back, Next, Finish and Cancel buttons for you.
      http://www.nicklewis.org/using-chaos-tools-form-wizard-build-multistep-forms-drupal-6
    5. Individual steps
      Each step is a normal FAPI form…almost.
      The submit handler on each step should build up data on the $form_state.
      No permanent storage should happen here.
      Order of steps can be changed during submit handler by changing $form_state[‘clicked_button’][‘#next’]
    6. AJAX Framework
      Links and forms can be AJAXified by adding classes.
      AJAX callbacks use a macro language to tell the server how to handle the returned data.
      Macro language is extensible so that you can add commands if you need to do something it does not already do.
    7. WTF?
      <a href=“/my/ajax/thing” class=“ctools-use-ajax”>Click to do something ajaxy</a>
      ctools_include('ajax');
      $commands = array();
      $commands[] = ctools_ajax_command_replace('#page-manager-list-pages', $table);
      if (!empty($replace_form)) {
      $commands[] = ctools_ajax_command_replace('#page-manager-list-pages-form', $form);
      }
      ctools_ajax_render($commands);
    8. CTools Modal
      Builds on the AJAX framework.
      Uses ctools-use-modal class to trigger modal loading.
      AJAX framework command to dismiss the modal: ctools_ajax_modal_dismiss()
      Automatically supported by the wizard.inc tool by adding ‘modal’ => TRUE and ‘ajax’ => TRUE to the form state.
    9. Collapsible DIV
    10. CSS Caching
      Filter CSS from user input to remove dangerous items
      Store generated CSS in temporary files in the files directory. Similar to CSS aggregation.

    + merlinofchaosmerlinofchaos, 2 months ago

    custom

    1970 views, 5 favs, 0 embeds more stats

    DrupalCon Paris 2009 presentation on the Chaos Tool more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 1970
      • 1970 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 5
    • Downloads 59
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories