
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.
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#1
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 · 15,800 views · 96 clicksSaaS · Week 42 · 15,800 views · 96 clicks
#2
Seenshot App
Free, Fast, MacOS Screenshot app. Make Screenshot cmd+shift+2 and send it via link
Desktop App · 4,851 views · 109 clicksDesktop App · Week 42 · 4,851 views · 109 clicks
#3
Conversational Backlinks for Busy Founders
Place Backlink Relevant Conversation for your domain across Forums and Conversations
Website · 16,678 views · 195 clicksWebsite · Week 42 · 16,678 views · 195 clicks
#4
Substack Posting API
Onboard your Agent to Substack. Write Publish on Substack via API
SaaS · 35,673 views · 184 clicksSaaS · Week 42 · 35,673 views · 184 clicks
#5
codester.com
SocialDesk+: Omnichannel Social Commerce & Business Management Platform This is stronger than simply “Social Commerce and Messaging” because it tells buyers this is a complete business platform, not just a messaging script. Turn Social Conversations Into Sales SocialDesk+ is a complete omnichannel social commerce and business management platform built for businesses that sell and communicate with customers through social media. Instead of switching between WhatsApp, Facebook, Instagram and TikTok, businesses can manage customer conversations, comments, products, leads, follow-ups, automation, teams and business reports from one professional workspace. And because the full source code is included, developers, agencies and entrepreneurs can customize, rebrand and launch SocialDesk+ as their own business solution or SaaS platform. 🚀 Build Your Own Social Commerce Business SocialDesk+ gives you the foundation to launch: - Your own SaaS platform - A white-label social CRM - A social-commerce management system - A customer communication platform - A business messaging solution - A custom solution for clients - A multi-business subscription platform 💬 Connect Your Customers Supported social channels include: WhatsApp • Facebook • Instagram • TikTok Bring supported conversations into one centralized workspace and help businesses respond faster without constantly switching between platforms. 🛍️ More Than a Messaging Platform SocialDesk+ combines communication with the tools businesses need to manage customer opportunities: Inbox Manage customer conversations from connected channels. Comments Monitor and respond to social-media comments. Customers & Leads Organize customer information and potential buyers. Products & Catalog Manage products and give your team quick access to product information. Follow-Ups Make sure potential customers don't get forgotten. Automation Automate repetitive customer questions and responses. AI Assistant Provide AI-assisted communication when configured. Team Management Give managers and staff access to the business workspace. Reports & Analytics Track activity using business reports and analytics. The current product listing already includes these capabilities. 🔥 Why Buyers Will Want It Launch Faster Start with an already-built business platform instead of developing the entire system from zero. Customize Everything The full source code is included, allowing developers to change branding, features, workflows and integrations. Build a SaaS Create multiple business workspaces and offer SocialDesk+ as a subscription-based service. Sell to Businesses Offer it to retailers, restaurants, service businesses, online sellers, agencies and other businesses that communicate with customers through social media. Mobile + Web + Backend This isn't just a mobile UI template. It includes: - Flutter mobile application - Python / FastAPI backend - Web interface - Administration tools - Database infrastructure - API-based architecture - SQLite / PostgreSQL support - Android and iOS project structure 💼 One Platform. Multiple Business Opportunities. For SaaS Entrepreneurs Launch your own subscription platform and allow multiple businesses to operate inside separate workspaces. For Software Agencies Customize and rebrand the platform for clients instead of building an omnichannel business system from scratch. For Developers Use the complete source code as a foundation for your own social-commerce or customer-management product. For Businesses Deploy a dedicated version for your own customer-service and social-commerce operations. 🧩 What's Included Mobile - Flutter / Dart - Android - iOS project Backend - Python - FastAPI - SQLAlchemy - Alembic Database - SQLite - PostgreSQL Web - HTML5 - CSS3 - JavaScript Deployment - Docker - Docker Compose - Production configuration Business Platform - Multi-workspace architecture - Authentication - Teams - Customers - Products - Messaging - Comments - Automation - Reports - Subscriptions - Administration The current listing also documents third-party integrations such as Meta, TikTok, Stripe, Firebase, SMTP and optional OpenAI configuration. ⚡ What Makes SocialDesk+ Different? You're not buying a simple: ❌ Chat UI ❌ WhatsApp clone ❌ Flutter template ❌ Admin dashboard ❌ Basic CRM You're getting a complete business platform foundation that can be customized, branded and commercialized. Connect. Automate. Manage. Grow. SocialDesk+ Omnichannel Social Commerce & Business Management Platform One important change I'd make to the current listing The current page starts with: “A simple guide to managing your social conversations, customers, products and business activity.”
Other · 3,085 views · 30 clicksOther · Week 42 · 3,085 views · 30 clicks
#6
sandbook.app
Sandbook reads EPUB, PDF, web pages and scanned pages aloud with Kokoro TTS, an open neural voice model that runs on your iPhone, free and offline. Choose from 41 natural voices in English, Spanish, French, Italian, Brazilian Portuguese and Hindi and follow each word as it is spoken. Try the same voices in your browser first with the free Kokoro TTS online demo.
Other · 3,089 views · 13 clicksOther · Week 42 · 3,089 views · 13 clicks