Download the PHP package 24hoursmedia-craftcms/twig-works-image without Composer
On this page you can find all versions of the php package 24hoursmedia-craftcms/twig-works-image. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download 24hoursmedia-craftcms/twig-works-image
More information about 24hoursmedia-craftcms/twig-works-image
Files in 24hoursmedia-craftcms/twig-works-image
Package twig-works-image
Short Description twig image transforms..
License proprietary
Informations about the package twig-works-image
TwigWorksImage plugin for Craft CMS 3.x
For extra functionalities in this plugin we will request a small fee once Craft 3 GA is released.
A twig extension to apply transformations to image tags in blocks of html. Useful for content migrated for legacy systems.
- Lightboxify images in HTML
- Remove style and other tags from images
- Apply classes and styles to images
See all available twig filters
Requirements
This plugin requires Craft CMS 3.0.0-RC1 or later.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require 24hoursmedia-craftcms/twig-works-image
- In the Control Panel, go to Settings → Plugins and click the “Install” button for TwigWorksImage.
TwigWorksImage Overview
- Lightboxify images in an html document
Configuring TwigWorksImage
Currently there is no configuration.
Using TwigWorksImage
See all available twig filters and examples
Lightboxify images in HTML
Add data-toggle="lightbox" and a max width of 100% to images in an html document.
Example:
This will:
- remove most attributes from images in the html
- embed the image in a link pointing to the full image
- add an attribute data-toggle="lightbox" to the image
(Note you will have to add your own lightbox script, for example in Bootstrap http://ashleydw.github.io/lightbox/)
The result:
Brought to you by 24hoursmedia