Install

Works with Drupal: 8.x

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 20.73 KB
MD5: 70475627be2c6fb4406f394bdc240936
SHA-1: 2ad3625f621dce617632594d324a9d0394b0065b
SHA-256: 0f7a4c3469bd64b8bac778d1a5b1aafebed9bc1b3a907319ef459e0700594f02
Download zip 36.76 KB
MD5: 02968942fe47dfa2346ec0c468fc2467
SHA-1: a792a375621bdaa947f00bd085eb532982e215a5
SHA-256: 5f21ce0b78baf3b3efec913600b7b4bde2dc97869a2bbf570f5defdfd95dc0f6

Release notes

Updated shortcode annotation:

  1. Updated description id - This is used in the backend to identify/differentiate shortcodes, not used for parsing.
  2. Added token - This is used to parse the shortcode. If not defined, defaults to id.
  3. Added weight - Weight of this shortcode. Shortcodes with lower weights are processed first.

Let's say you want to provide your own implementation of [button][/button], here's what you can do:

  1. Prefix your id appropriately so it is not overridden by the default 'button', e.g. 'custom_button'
  2. Set 'token' to 'button', so [button][/button] still matches.
  3. Set 'weight' to 50 (or anything smaller than 99), so it is smaller than the default 99 for all default shortcodes.
Created by: squall3d
Created on: 23 Oct 2016 at 18:45 UTC
Last updated: 17 Feb 2017 at 16:48 UTC
New features
Unsupported

Other releases