This project is not covered by Drupal’s security advisory policy.
JSON-LD Schema Injector
Adds configurable JSON-LD structured data to your Drupal site for improved SEO and rich search results.
Define a global schema for the entire site or inject specific schemas based on URL path patterns — all without writing code.
Overview
- Add structured data site-wide (e.g., Organization, WebSite)
- Inject different schemas on specific paths (e.g., /blog/*, /about-us)
- Validate JSON before saving
- Manage everything from a simple admin UI
- No frontend changes, theme overrides, or JavaScript required
Features
Global Schema (All Pages)
Add a single JSON-LD block that appears on every page of the site.
- Organization schema
- WebSite schema
- Publisher schema
Path-Based Schema Injection
Attach specific JSON-LD blocks to matching paths.
- Exact paths — /about-us
- Wildcards — /blog/*
- Front page keyword — <front>
Multiple path/schema combinations can be configured.
Dynamic “Add More” Support
Uses AJAX to allow adding unlimited schema entries in the configuration form.
Installation
- Place the module in /modules/custom/jsonld_schema_injector
- Enable it via Extend
- Grant permission: Administer JSON-LD Schema Injector
- Configure at: /admin/config/system/jsonld-schema-injector
Why Use This Module?
- Lightweight
- Developer-friendly
- No dependencies
- Works with any theme
- Ideal for SEO optimization
Supporting organizations:
| Attachment | Size |
|---|---|
| Screenshot from 2026-02-26 20-22-22.png | 69.82 KB |
| Screenshot from 2026-02-26 20-22-16.png | 48.42 KB |
Project information
- Project categories: Search engine optimization (SEO)
- Created by kritika_21 on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
