Skip to content

Instantly share code, notes, and snippets.

Avatar

biwerr biwerr

  • Germany
View GitHub Profile
@biwerr
biwerr / Contao Facebook Metatags
Created Jun 30, 2015
Contao Facebook Meta Tags News Article
View Contao Facebook Metatags
// News Detail Template (news_full)
<?php
$ogimage = $this->getImage( $this->urlEncode( $this->singleSRC ), 512, 512 , 'box' );
$GLOBALS['og:title'] = $this->newsHeadline;
$GLOBALS['og:description'] = $this->teaser;
$GLOBALS['og:image'] = $this->Environment->base . $ogimage;
?>
You can’t perform that action at this time.