Skip to content

mixmint/Open-Graph-Joomla5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

If you like my work and appreciate my commitment, you can buy me a coffee.

Buy Me A Coffee

Open Graph for Joomla 4 & 5

Easily control what people see when your Joomla content is shared on social networks (Facebook, X, etc.).


What is it

This plugin lets you manage Open Graph and Twitter Card meta tags for:

  • Plugin-level defaults
  • Individual articles
  • Menu items

It ensures that when someone shares a page, the correct title, description, and image show up — not some random or wrong one.


How priority works

  1. Menu item settings — highest priority (if you set OG data in a menu item, it wins).
  2. Article settings — if there’s no menu override.
  3. Plugin defaults — used only when neither menu nor article provides values.

The “Use Article Content” option

If enabled:

  • If your article does not have custom OG title or description, the plugin will use the article’s own title, the meta description, or the intro text.
  • If no custom OG image is set, the plugin will pick the first image found inside the article content (intro or full).
  • If still nothing, plugin defaults are used.

If disabled:

  • Only values explicitly set in the article (OG fields) or the plugin settings will be used.
  • Article content (title/description/image) will not be used just because you enabled “Use Article Content”.

When OG/Twitter tags are created

Tags are generated only if one of these is true:

  • The article has metaOpenGraph or metaTwitterCard turned on, or
  • The plugin has them turned on and Use Article Content is enabled.

Image selection & safety

  • If an article’s OG image is set → use it.
  • Otherwise, if image from article content is allowed → pick the first valid image (intro or full) according to what appears first in the content.
  • Remote URLs for images are allowed only if they use the same protocol (http vs https) as your site (to avoid mixed‐content warnings).

Twitter Card & Extras

  • Automatically includes summary_large_image card when Twitter Card is enabled.
  • Alt text for the image is generated from the OG title.
  • If you fill in Facebook App ID in plugin settings, it’s included in the tags.

Installation & Setup

  1. Install & enable the plugin via Joomla’s plugin manager.
  2. Go to plugin settings and configure global defaults (title, description, image, etc.).
  3. If needed, for specific articles or menu items, fill in their OG fields.
  4. Optionally enable Use Article Content if you want fallback from article content.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages