Drupal Plugin

How to install the drupal plugin

How to install the Drupal plugin

DRUPAL 7: Download here: https://www.drupal.org/project/linklay/releases/7.x-1.0

DRUPAL 8: Download here: https://www.drupal.org/project/linklay/releases/8.x-1.x-dev

Installation: Install as you would normally install a contributed Drupal module. For more information, visit: https://www.drupal.org/docs/8/extending-drupal-8/installing-drupal-8-modules.

Configuration: The module has no menu or modifiable settings. 

REQUIREMENTS: This module requires the following modules to work:

Token: https://drupal.org/project/token
Token Filter: https://drupal.org/project/token_filter

 

How to use the plugin

After you’ve created your shoppable image and click “Save & Get Code”, select Drupal from the dropdown menu. This will generate your Drupal shortcode.


screenshot of drupals copy code popup

Copy the shortcode and paste it into your editor (like below). When you preview or publish your post/page, you will see your Linklay image.

Drupal editor shoppable image code

 

Assigning alignment and class parameters

The syntax for the token is as follow:

[linklay:image:{identifier}]

where {identifier} looks like the following image ID: linklay59e77f5da1dce4.21464826.

The Linklay token can use two optional modifiers separated by a semi-colon: _align_ and _class_. Those modifiers can be combined.

* [linklay:image:linklay59e77f5da1dce4.21464826;align:center]

* [linklay:image:linklay59e77f5da1dce4.21464826;class:my_css_class]

* [linklay:image:linklay59e77f5da1dce4.21464826;align:center;class:my_css_class]

The _align_ modifier allows users to force the horizontal alignment parameter to either left, center or right. Center is the default value.

The _class_ modifier allows users to add a class attribute to the outer container. The value is arbitrary.

*IMPORTANT*: Note that the _text format_ of the article must be set to *FULL HTML* or equivalent for the token to have an effect.

For a full description of the module, visit the project page: https://drupal.org/project/linklay

To submit bug reports and feature suggestions, or to track changes: https://drupal.org/project/issues/linklay

linklay logo shoppable images
Effortless and seamless – use shoppable images to increase sales and drive revenue today!

© Linklay. All rights reserved 2019

linklay logo shoppable images
Effortless and seamless – use shoppable images to increase sales and drive revenue today!