forked from ZoetropeLabs/zoetrope_drupal
-
Notifications
You must be signed in to change notification settings - Fork 0
This module provides a Zoetrope ID field, field formatters and tokens for putting zoetrope engage viewers in to drupal entities
License
miKeDixon/zoetrope_drupal
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Zoetrope Viewer Module SUMMARY ------- The Zoetrope viewer module provides fields, field formatters and tokens for the zoetrope viewer. It's made specifically for use with the engage photography service from http://zoetrope.io. REQUIREMENTS ------------ None. INSTALLATION ------------ * Install as you would normally install a contributed drupal module. See: https://drupal.org/documentation/install/modules-themes/modules-7 for further information. CONFIGURATION ------------- Add a `Zoetrope ID` field to an entity, using the `Zoetrope Engage Viewer` as the display type. DISPLAY FORMATTERS ------------------ Zoetrope images are always square, though the size is configurable, using standard image styles. Image styles are not actually processed for Zoetrope images - only the sizes are honored. Any changes to the image styling need to be done with CSS or by using an alternate trigger image. If you wish to display a Zoetrope image if it exists, or fall back to a static shot if it doesn't, this should be done using a template file. e.g. if your engage image field is called `field_zoetrope_engage_image` and your legacy/backup image field is called `field_image`. ``` <?php if (empty($content['field_zoetrope_engage_image'])) {?> <div class="product-image flat-shot"> <?php render($content['field_image']); ?> </div> <?php } else {?> <div class="product-image engage"> <?php render($content['field_zoetrope_engage_image']); ?> </div> <?php } ?> ``` If you want to combine a list of regular images with Zoetrope images for display, an image formatter `Image + Zoetrope Images` is provided to merge a Zoetrope ID field into an image field for display. TOKENS ------ The main use case for the tokens in this module is to use them in conjunction with the metatags module. Provided Tokens: *. [`entity:field_name`] - The 500px preview image url
About
This module provides a Zoetrope ID field, field formatters and tokens for putting zoetrope engage viewers in to drupal entities
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published