Files
MokoSuiteOpenGraph/issues/006-structured-data-jsonld.md
T
Jonathan Miller c9fe15c90c
Universal: Cascade Main → Dev / Cascade main → branches (push) Successful in 2s
feat: initial MokoOpenGraph package scaffold
Joomla package (pkg_mokoog) with three sub-extensions:
- com_mokoog: Admin component with tag manager, MVC, database schema
- plg_system_mokoog: OG + Twitter Card meta tag injection via onBeforeCompileHead
- plg_content_mokoog: Per-article and per-menu-item OG fields in editor

Includes CI/CD workflows, issue templates, 12 feature issues, and
full Joomla 4/5 DI container architecture.

Authored-by: Moko Consulting

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-23 17:10:17 -05:00

1.2 KiB

title, labels, milestone
title labels milestone
[FEATURE] Structured Data / JSON-LD Output enhancement, priority: medium v01.02

Feature Description

In addition to Open Graph meta tags, generate JSON-LD structured data (<script type="application/ld+json">) for improved SEO and rich search results.

Problem or Use Case

Open Graph is for social sharing, but Google and other search engines primarily use JSON-LD structured data for rich results (breadcrumbs, article info, FAQ, product reviews, etc.). A comprehensive SEO extension should provide both.

Proposed Solution

Add optional JSON-LD output alongside OG tags:

  1. Article schema — @type: Article with headline, datePublished, author, image
  2. WebPage schema — For non-article pages
  3. BreadcrumbList schema — Based on Joomla menu hierarchy
  4. Organization schema — Site-wide, configured in plugin settings
  5. Product schema — When VirtueMart/HikaShop adapter is active

Implementation Details

  • New JsonLdBuilder helper class in plg_system_mokoog
  • Output in onBeforeCompileHead alongside OG tags
  • Plugin configuration toggle: Enable/disable JSON-LD per schema type
  • Validate output against Google's Structured Data Testing Tool format