Shortcodes API for Drupal 8

Description
The Shortcodes API for Drupal 8 is a simple set of methods for creating Drupal 8 shortcodes for use in text fields, modules and themes.
The API enables developers to create special kinds of content that users can attach to certain content by adding the corresponding shortcode into the text fields or processing it in a theme’s or a module’s methods.
The API handles all the tricky parsing, eliminating the need for writing a custom regular expression for each shortcode.
Helper functions are included for setting and fetching default attributes. The API supports both self-closing and enclosing shortcodes.
FEATURES
- NEW from v1.1: User interface for inserting shortcodes into CKEditor!
- Create shortcodes programmatically following Drupal 8 coding best practices
- Create simple shortcodes in admin panel (no programming skills needed)
- Display shortcodes in content, blocks, theme files and modules
- Enable or disable shortcodes by every text formats separately or globally for all text formats
- Create a shortcode’s custom options and attributes
- Process nested shortcodes
- Choose between enclosing vs self-closing shortcodes
- Create shortcodes that will execute PHP code (PHP Filter module is required for this feature)
You can create shortcodes in two ways:
Through admin panel (no programming skills needed) This way provides creating simple shortcodes with limited set of functionality. If you need more advanced usage you need to code custom shortcodes.
Programmatically (using API directly in your code) This way provides full functionality for creating shortcodes.
The shortcodes can be displayed in different ways:
- in text fields (in content, blocks, custom nodes…)
- in theme files
- in custom modules
CHANGELOG
Shortcodes API 8.x-1.1, 14-Oct-2016 ----------------------------------- - Fixed issue with 'Select all' checkbox missing in shortcodes tableselect. - Created shortcodes.api.php file. - Implement hook_help. - Created method for building enabled shortcodes by text format. - Method getModules renamed to getProviders in service class. - Updated readme file. - Created submodule Shortcodes Embed for inserting shortcodes into CKEditor using button and popup dialog. - Submodule Shortcodes Example updated to support shortcodes embed dialog. Shortcodes API 8.x-1.0, 01-Aug-2016 ----------------------------------- - Initial release.
| Type | Drupal Module |
|---|---|
| Author | Templago |
| Category | Plugins / Drupal |
| Price | $18 |
| Sales | 10 |
| Published | Aug 11, 2016 |
| Last Update | Oct 18, 2016 |
| Compatible Browsers | IE9, IE10, IE11, Firefox, Safari, Opera, Chrome, Edge |
| Compatible Software | Drupal 8.2.x, Drupal 8.1.x, Drupal 8.0.x |
| Source Files Included | JavaScript JS, HTML, CSS, PHP |
Categories
Tags
External listing. code.market does not sell this product and does not process payment for it. Pricing, payment, delivery, licensing, refunds, and support are handled by the third-party merchant on its own website. We may earn an affiliate commission from a referral. Details.
Products of the Week.
Submit🥇
Free LinkedIn Likes From Real Members | LinkedInLikes
Get free LinkedIn likes on your posts from real members who react by hand. No password needed: you only share a link.
Website · 12,847 views · 46 clicksWebsite · Week 49 · 12,847 views · 46 clicks
🥈
Free Medium Claps From Real Writers | MediumPlace
Free Medium claps on your stories from verified accounts of real writers, each given by hand. No bots, no Medium password, nothing to pay. Paste a link.
Website · 7,964 views · 10 clicksWebsite · Week 49 · 7,964 views · 10 clicks
🥉
Free GitHub Stars From Real Developers | GitWow
Get free GitHub stars on your repository from real developers who star by hand. No token or password, and it's free.
Website · 15,624 views · 28 clicksWebsite · Week 49 · 15,624 views · 28 clicks
#4
Free Substack Likes From Real Writers | StackRooms
Free Substack likes on your posts and Notes from verified accounts of real writers, given by hand. Free to ask, free to receive. Just share a link.
Website · 7,784 views · 2 clicksWebsite · Week 49 · 7,784 views · 2 clicks
#5
Free Twitter Likes From Real People | SupaTwitter
Free Twitter likes on your tweets from verified accounts of real people, each given by hand. No bots, no Twitter password, nothing to pay. Paste a link.
Website · 7,679 views · 4 clicksWebsite · Week 49 · 7,679 views · 4 clicks
#6
Free X Likes From Real People, Given by Hand | XFast
Free X likes on your posts from verified accounts of real people, each one given by hand. No bots, no X password, no conditions. Paste a link to start.
Website · 7,591 views · 0 clicksWebsite · Week 49 · 7,591 views · 0 clicks