Body Style Image

Component ID

2930678

Component name

Body Style Image

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

Apply image style to body content images which are already uploaded through CKEditor, IMCE.

INSTALLTION

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

CONFIGURATION

  • Configure the Style for Body Style Image
  • Use the administration configuration page and help (Body Style Image module)
  • Select content type and Image Style which you want to apply.
  • Configuration URL : admin/config/development/body-style-image page.

How to use Body Style Image :

  • Alter the node body content before rendering it in tpl.
  • $variables['newbody_content'] = $html_body_content;
  • Check whether its empty or not then Print '$newbody_content' variable to 'node.tpl.php' or 'node--[CONTENT_TYPE].tpl.php' file.

Example :

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

Features

  • Apply Image style to node body content.
  • Image Style will be applied for Images which are uploaded through CKEditor,
  • IMCE.

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