Coder Social home page Coder Social logo

plg_cccsocialmedia's Introduction

plg_cccsocialmedia

Joomla Plugin to Display Open Graph and Twitter Options in your menu items and articles. The speciality about this plugin is the feature, that it recognizes the user agent and delivers the right open graph image to the various plattforms, as well as th e many fallback options to make sure anything is filled in the og data.

This plugin creates a new tab in your menu items and your articles and enables you to add open graph and twitter data to your page. You can also set up global and/or fallback options in you plugin parameters.

This plugin also does recognize the useragents google, facebook and pinterest and delivers the right open graph image according to the useragent. So if google scrapes an image from your site, google will receive the squared image. If pinterest is checking on your site, it will get the protrait image and if facebook or other agents want to get your open graph image it will get the 1:1.91 ratio image.

The menu parameters overwrite the article parameters and the article parameters overwrite the global paramters. Means:

  • Priority A - Menu
  • Priority B - Article
  • Priority C - Global plugin params

To make sure you have at least something in the open graph data the plugin has additional fallbacks:

  • if any of the open graph images are empty create a fallback to the article intro image and its alt-text
  • if any of the open graph images are empty and the intro image is empty create a fallback to the article fulltext image and its alt-text
  • if the open graph title is empty get the page title from menu item. If there is an article title take this one.
  • if the open graph or twitter description is empty use the meta description
  • if the open graph published time is empty get the creation date of the article if existent

plg_cccsocialmedia's People

Contributors

coolcat-creations avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.