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🥇
STOP GUESSING WHAT TO POST
AI that learns your brand voice and builds a month of consistent, on-brand social content: carousels, posts and hooks that sound like you, not like everyone else's AI.
SaaS · 3,998 views · 35 clicksSaaS · Week 45 · 3,998 views · 35 clicks
🥈
Conversational Backlinks for Busy Founders
Place Backlink Relevant Conversation for your domain across Forums and Conversations
Website · 41,651 views · 222 clicksWebsite · Week 45 · 41,651 views · 222 clicks
🥉
upvote.club
Free Social Media Engagement that Helps Boost Your Content. Upvote Club supports 19 social networks with 100+ engagement actions in one dashboard. Add links to your posts and get free engagement from real users.
SaaS · 39,676 views · 114 clicksSaaS · Week 45 · 39,676 views · 114 clicks
#4
Substack Posting API
Onboard your Agent to Substack. Write Publish on Substack via API
SaaS · 58,704 views · 198 clicksSaaS · Week 45 · 58,704 views · 198 clicks
#5
Seenshot App
Free, Fast, MacOS Screenshot app. Make Screenshot cmd+shift+2 and send it via link
Desktop App · 28,087 views · 122 clicksDesktop App · Week 45 · 28,087 views · 122 clicks
#6
Hand-Placed Backlinks $9.99 per link. Flat rate.
Buy hand-placed forum, Q-A and directory backlinks. Flat $9.99 per link, no subscriptions — you only pay for approved listings.
Website · 3,946 views · 19 clicksWebsite · Week 45 · 3,946 views · 19 clicks
#7
Free Invoice Generator - PDF Invoices in Your Browser, No Sign-Up
A free invoice maker for freelancers and small businesses: fill in the invoice, check the live preview, and download a PDF that looks exactly like it. Any currency, tax per item, three templates, no sign-up, and nothing leaves your device.
2,623 views · 17 clicksWeek 45 · 2,623 views · 17 clicks
#8
Merge PDF Files Free - Combine PDFs in Your Browser, No Upload
A free PDF merger for office workers, students, and freelancers: combine PDFs and images into one file in the browser, reorder files and pages, pick page ranges, keep bookmarks, and open password-protected PDFs. Nothing is uploaded, no sign-up, no watermark.
2,440 views · 13 clicksWeek 45 · 2,440 views · 13 clicks