This project is not covered by Drupal’s security advisory policy.

The Content Sneak Peek module provides a easy way for site developers to display
dynamic or static content using a "sneak peek" display, which can be rendered
on any position of the page that he wants.

This kind of display can be used to improve the user usability by enabling them
to see a summary or all fields of a desired content without having to exit the
current page and also without the need of clustering the page with more
information.

The main idea of this module is not to provide a static plug-and-play
functionality, but to provide a sturdy way to render anything depending on your
own requirements, from a simple content display to entire forms.

Sponsorship

This project has been sponsored by CI&T.

Configuration

After the module is enabled, you can start rendering a default sneak peek right
away by simply rendering a content with the 'content_sneak_peek_wrapper' theme, such as:

  print theme('content_sneak_peek_wrapper', array(
    'settings' => array(
      'selector' => '.open-sneak-peek',
      'content' => 'Test Sneak Peek',
    ),
  ));

Alternatively, the same could be achieved by using a renderable array.

This will make any element which contains the "open-sneak-peek" class to open a
sneak peek content on its click event rendering the "Test Sneak Peek" string.

If you pass the variable 'static' as FALSE on the theme call, a default AJAX
function will be called which will simply get the ID of the element that was
clicked and render it inside the Sneak Peek area.

Please note that only one sneak peek wrapper is currently supported.

For more detailed information, please check the README file.

Supporting organizations: 

Project information

Releases