Created
June 14, 2013 15:40
-
-
Save jommbee/5782828 to your computer and use it in GitHub Desktop.
Facebook Image in Contao
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Newstemplate "news_full.tpl" eingefügt werden: | |
<?php | |
$GLOBALS['fbImage'] = $this->singleSRC; | |
?> | |
//Das Template "fe_page.tpl" muss um folgenden Quellcode im Head-Bereich (<head>...</head>) erweitert werden. | |
<?php | |
if($GLOBALS['fbImage']){ | |
echo '<meta property="og:image" content="'.$this->base.$GLOBALS['fbImage'].'" />'; | |
} | |
?> | |
//prüfen ob der bPfad richtig übergeben wird | |
//https://developers.facebook.com/tools/lint/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment