feat: pull hero content from a Joomla article #56

Closed
opened 2026-06-04 12:07:46 +00:00 by jmiller · 1 comment
Owner

Summary

Add an option to source the hero overlay content from a Joomla article instead of the manual WYSIWYG editor. This allows content editors to manage hero text through the familiar Article Manager and enables multilingual content via Joomla associations.

Requirements

  • New contentSource list field: manual (default), article
  • New articleId field (type sql or modal_article, showon contentSource:article)
  • Load the article introtext (or fulltext if no introtext) via ArticleModel or direct DB query
  • Process content plugins on the loaded article text (onContentPrepare)
  • Fall back to manual editor content if the article is unpublished or not found
  • Article title can optionally replace the module title

Acceptance Criteria

  • Hero content can be sourced from any published Joomla article
  • Content plugins (shortcodes, etc.) are processed
  • Graceful fallback if article is missing or unpublished
  • Manual editor mode remains unchanged
  • Works with Joomla multilingual associations
## Summary Add an option to source the hero overlay content from a Joomla article instead of the manual WYSIWYG editor. This allows content editors to manage hero text through the familiar Article Manager and enables multilingual content via Joomla associations. ## Requirements - New `contentSource` list field: manual (default), article - New `articleId` field (type sql or modal_article, showon contentSource:article) - Load the article introtext (or fulltext if no introtext) via ArticleModel or direct DB query - Process content plugins on the loaded article text (`onContentPrepare`) - Fall back to manual editor content if the article is unpublished or not found - Article title can optionally replace the module title ## Acceptance Criteria - [ ] Hero content can be sourced from any published Joomla article - [ ] Content plugins (shortcodes, etc.) are processed - [ ] Graceful fallback if article is missing or unpublished - [ ] Manual editor mode remains unchanged - [ ] Works with Joomla multilingual associations
jmiller added the enhancementjoomla labels 2026-06-04 12:07:46 +00:00
Author
Owner

Branch created: feature/56-feat-pull-hero-content-from-a-joomla-art

git fetch origin
git checkout feature/56-feat-pull-hero-content-from-a-joomla-art
Branch created: [`feature/56-feat-pull-hero-content-from-a-joomla-art`](https://git.mokoconsulting.tech/MokoConsulting/MokoJoomHero/src/branch/feature/56-feat-pull-hero-content-from-a-joomla-art) ```bash git fetch origin git checkout feature/56-feat-pull-hero-content-from-a-joomla-art ```
Sign in to join this conversation.
No labels enhancement joomla
Type
Status
Priority
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoJoomHero#56