Site frontend: cross-post status display on articles #133

Open
opened 2026-06-21 15:50:17 +00:00 by jmiller · 0 comments
Owner

Summary

The site-side component has only a bare DisplayController.php — no views, no templates, and no frontend functionality. The component is admin-only in practice.

While admin-only operation is acceptable for the component itself, there should be frontend article integration showing cross-post status to visitors.

Current state

  • source/packages/com_mokosuitecross/site/src/Controller/DisplayController.php — exists but has no views to render
  • plg_content_mokosuitecross — admin-side article editor integration exists (fieldset, history panel)
  • No frontend display of cross-post status on published articles

Proposed features

1. Frontend status badges via content plugin

Extend plg_content_mokosuitecross to optionally inject cross-post links on the frontend:

  • "Also published on: [Twitter] [LinkedIn] [Mastodon]" with links to the platform posts
  • Controlled by component config toggle ("Show cross-post links on frontend")
  • Only shows for successfully posted items

2. Site component view (optional)

  • Simple read-only view showing recent cross-posts for an article (accessed via menu item or URL)
  • Could serve as an "article syndication" page

Acceptance Criteria

  • Config toggle for showing cross-post links on frontend articles
  • Platform icons/links rendered below article content when enabled
  • Links use platform_post_id to construct correct URLs per platform
  • Graceful handling when no cross-posts exist (show nothing)
## Summary The site-side component has only a bare `DisplayController.php` — no views, no templates, and no frontend functionality. The component is admin-only in practice. While admin-only operation is acceptable for the component itself, there should be **frontend article integration** showing cross-post status to visitors. ## Current state - `source/packages/com_mokosuitecross/site/src/Controller/DisplayController.php` — exists but has no views to render - `plg_content_mokosuitecross` — admin-side article editor integration exists (fieldset, history panel) - No frontend display of cross-post status on published articles ## Proposed features ### 1. Frontend status badges via content plugin Extend `plg_content_mokosuitecross` to optionally inject cross-post links on the frontend: - "Also published on: [Twitter] [LinkedIn] [Mastodon]" with links to the platform posts - Controlled by component config toggle ("Show cross-post links on frontend") - Only shows for successfully posted items ### 2. Site component view (optional) - Simple read-only view showing recent cross-posts for an article (accessed via menu item or URL) - Could serve as an "article syndication" page ## Acceptance Criteria - [ ] Config toggle for showing cross-post links on frontend articles - [ ] Platform icons/links rendered below article content when enabled - [ ] Links use `platform_post_id` to construct correct URLs per platform - [ ] Graceful handling when no cross-posts exist (show nothing)
Sign in to join this conversation.
No labels
Priority Medium
Type Feature
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoSuiteCross#133