2017 © Pedro Peláez
 

library opengraph

Adds an Open Graph tag manager to the Reliv Content Manager.

image

wshafer/opengraph

Adds an Open Graph tag manager to the Reliv Content Manager.

  • Tuesday, July 12, 2016
  • by wshafer
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,308 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Description

This package adds an Open Graph tag manager to the Reliv Content Manager., (*1)

Install

Composer:, (*2)

$ composer require wshafer/opengraph

Config:, (*3)

Add WShafer\OpenGraph to your config/application.config.php modules section., (*4)

DB Updates

Generate the SQL file needed to update your database with the needed tables. We use Docrine so a simple update should generate the needed sql file:, (*5)

$ php pubic/index.php orm:schema-tool:update --dump-sql

Run the generated sql against your database., (*6)

Layouts

To add the Open Graph tags, you'll need add the view helper to the header section of your layouts., (*7)

Start by removing any open graph tags currently in your view. Then add the following to your head section in the layouts where you want your OG tags to appear, (*8)

<?= $this->openGraph(); ?>

Default Values

The module contains some default values, but you'll want to customize these to your liking., (*9)

Add the following config to global.php or local.php and adust the values according to your needs:, (*10)

return [
    'openGraph' => [
        'defaults' => [

            'facebook' => [
                'appId' => '1234',
            ],

            'general' => [
                'ogType' => 'website',
            ],

            'website' => [
                'title' => 'No Title',
                'image' => 'https://upload.wikimedia.org/wikipedia/commons/4/4b/Blank_License_Plate_Shape.jpg',
                'description' => '',
                'siteName' => '',
            ],

            'article' => [
                'title' => 'No Title',
                'image' => 'https://upload.wikimedia.org/wikipedia/commons/4/4b/Blank_License_Plate_Shape.jpg',
                'description' => '',
                'siteName' => '',
                'author' => '',
                'section' => ''
            ],
        ],
    ],
];

The Versions

12/07 2016

dev-master

9999999-dev http://www.reliv.com/

Adds an Open Graph tag manager to the Reliv Content Manager.

  Sources   Download

BSD-3-Clause

The Requires

 

plugin content manager open graph rcm reliv

12/07 2016

0.0.4

0.0.4.0 http://www.reliv.com/

Adds an Open Graph tag manager to the Reliv Content Manager.

  Sources   Download

BSD-3-Clause

The Requires

 

plugin content manager open graph rcm reliv

12/07 2016

0.0.3

0.0.3.0 http://www.reliv.com/

Adds an Open Graph tag manager to the Reliv Content Manager.

  Sources   Download

BSD-3-Clause

The Requires

 

plugin content manager open graph rcm reliv

11/07 2016

0.0.2

0.0.2.0 http://www.reliv.com/

Adds an Open Graph tag manager to the Reliv Content Manager.

  Sources   Download

BSD-3-Clause

The Requires

 

plugin content manager open graph rcm reliv

11/07 2016

0.0.1

0.0.1.0 http://www.reliv.com/

Adds an Open Graph tag manager to the Reliv Content Manager.

  Sources   Download

BSD-3-Clause

The Requires

 

plugin content manager open graph rcm reliv