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

Image Wrapper helps you to add wrapper DIV and ID attribute to images which are already uploaded through CKEditor, IMCE. Image wrapper will be applied based on the content type selected in back-end configuration. There is no javascript is needed for adding the wrapper.

NOTE: Please don't use Body style Image while using this module.

INSTALLTION

  • Copy image_wrapper directory to your modules directory.
  • Enable the module at module configuration page.

CONFIGURATION

How to Configure the Image Wrapper ?

  • Use the administer configuration page and help (Image Wrapper module)
  • Select content to add wrapper to images
  • Configuration URL : admin/config/development/image-wrapper

How to use Image Wrapper ?

7.x Example:

   if (!empty($wrapper_body_content)) {
     print render($wrapper_body_content);
   }
   else {
     print render($content);
   }

Override template:
7.x:

Check whether its empty or not then Print '$newbody_content' variable to
'node.tpl.php' or 'node--[CONTENT_TYPE].tpl.php' file.

Features

  • Add wrapper DIV to image which are uploaded through CKEditor, IMCE.

Suggestions/Requirements
Add you suggestions or new requirements here. Glad to add more features in to the module :)

Supporting organizations: 

Project information

Releases