Community Documentation

Peekaboo; Ajax field formatter

Last updated December 12, 2011. Created by danielb on December 12, 2011.
Log in to edit this page.

The Peekaboo module is designed to allow a field's full formatted value to not be calculated and output during a page load of the node, but to be pulled in through a separate request.
This was to reduce overhead in the contents of 'reference' modules such as Node reference, or View reference, which can potentially require the usual field formatter to do quite a lot of work, such as loading several nodes. Peekaboo is particularly useful when the references are nested, and can allow the user viewing the node to 'drill down' through the references with several Ajax requests.

The design of Peekaboo was changed between 6.x-1.x and 7.x-2.x. In 6.x-1.x Peekaboo uses a CCK field which acts as a sort of "field reference" to the field you want to include with Ajax. As of 7.x-2.x Peekaboo is purely a field formatter, and the removed functionality is now part of Field reference.

The following pages contain documentation about the Peekaboo; Ajax field formatter.

Page status

No known problems

Log in to edit this page

About this page

Drupal version
Drupal 6.x, Drupal 7.x, Drupal 8.x
Level
Beginner, Intermediate
Audience
Designers/themers, Programmers, Site administrators
Keywords
ajax, asynchronous, CCK, field, fields, formatter, javascript, js, load, loader, view, viewer

Site Building Guide

Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.