mvo/contao-opengraph-tags

Add opengraph tags to your pages in Contao Open Source CMS

Installs: 754

Dependents: 1

Suggesters: 0

Security: 0

Stars: 5

Watchers: 3

Forks: 1

Open Issues: 2

Type:contao-bundle

v1.2.0 2020-05-16 11:59 UTC

This package is auto-updated.

Last update: 2024-12-16 22:00:41 UTC


README

This bundle adds OpenGraph meta tags to pages in Contao Open Source CMS.

Installation

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

$ composer require mvo/contao-opengraph-tags

Step 2: Enable the Bundle

Skip this point if you are using a Managed Edition of Contao.

Enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new \Mvo\ContaoOpenGraphTags\MvoContaoOpenGraphTagsBundle(),
        );

        // ...
    }

    // ...
}

Use the Bundle

OpenGraph tags can be enabled foreach page root in the backend. If enabled <og> tags are generated in the head section that among others will output the page title, page description if set or one ore more images. Images can be selected for each page and apply for all child pages that have no images set.