# Summary

Shortcodes are actually macros to be used in the text of contents. These macros change the text of the content and format the given part through the theme engine. This module defines few basic shortcodes only. (New ones will come.))

# Project URL

https://www.drupal.org/project/shortcode

# Where is the code?

https://www.drupal.org/project/shortcode

# Estimated completion date

Mid April 2016

# Dependencies

None

# Who's doing the port?

squall3d

# What help do they need?

Review and feedback

# D8 roadmap

Integration with other modules such as views?

# Background and reference information

https://www.drupal.org/node/2529080

Comments

Patrick Storey created an issue. See original summary.

Patrick Storey’s picture

Title: [module_short_name] Module Human-Readable Name (Issue Template) » [shortcode] Shortcode
Issue summary: View changes
nicrodgers’s picture

Issue summary: View changes

The project homepage says they plan to release a D8 version in January 2016, although as it's now March 2016 it's obviously behind schedule!

squall3d’s picture

Hi all, I implemented a working D8 port at https://www.drupal.org/sandbox/ryantan/2692819

The new shortcode plugin type is provided by a ShortcodePluginManager and there is also ShortcodeInterface and ShortcodeBase so new shortcode plugins can extend from them. Right now only 1 shortcode (Highlight) is implemented to test the new plugin type and serve as an example, but more will come soon. If there are nobody currently porting to D8 I humbly volunteer my time for this!

dieppon’s picture

Squall3d, look great!

squall3d’s picture

Updates:

  • Implemented button, image, and quote shortcodes.
  • Handled self-closing shortcodes.
  • Provided twig templates for easier overriding.
squall3d’s picture

Assigned: Unassigned » squall3d
Status: Active » Needs work

Moved global functions into a service and refactored shortcode plugins to rely on Shortcode service.

squall3d’s picture

Implemented last 2 shortcodes i.e. link and random. I guess it can be ready for review when I add the test cases.

squall3d’s picture

Implemented webtest for highlight shortcode as an example

squall3d’s picture

Issue summary: View changes
squall3d’s picture

Issue summary: View changes
squall3d’s picture

Status: Needs work » Needs review

Release candidate 1 released after fixing all active issues that gathered for the past few months.

mmjvb’s picture

Status: Needs review » Reviewed & tested by the community

With an RC, Status should be RTBC.

Denes.Szabo’s picture

Status: Reviewed & tested by the community » Closed (outdated)

Seems this issue already outdated, today I released D8/D9 compatible version of this module.

mmjvb’s picture

Status: Closed (outdated) » Fixed

With a Stable released it should be Fixed.

apaderno’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.