Closed youssefelmourabit closed 7 years ago
Meta description is supported, but the logic behind it is totaly bonkers upstream in Piwigo core.
If you want to add such as the open graph ones you can use the add to head plugin: http://piwigo.org/ext/extension_view.php?eid=582
@pablopeu Help what to put in the Open Graph to the picture and description are displayed correctly :)
<meta property="og:type" content="website">
<meta property="og:site_name" content="Site_name">
<meta property="og:title" content="Title">
<meta property="og:description" content="Description.">
<meta property="og:url" content="http://example.com/page.html">
<meta property="og:locale" content="ru_RU">
<meta property="og:image" content="http://example.com/img.jpg">
<meta property="og:image:width" content="968">
<meta property="og:image:height" content="504">
OG Meta does not help, they are all there, open www.peu.net and check page source :)
On Tue, Feb 21, 2017 at 4:25 AM, Sergey notifications@github.com wrote:
@pablopeu https://github.com/pablopeu Help what to put in the Open Graph to the picture and description are displayed correctly :)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tkuther/piwigo-bootstrap-darkroom/issues/34#issuecomment-281265076, or mute the thread https://github.com/notifications/unsubscribe-auth/AYlubO7M6cpgae_KQ8U7useZb1rjRYUdks5repFagaJpZM4MFQaP .
@pablopeu Dear friend, you have the same descriptions, images, headers on all pages :( And how to make so that they were taken to a page?
Sergey, there is a plugin where you can add elements to the
its called "Add < head > element"On Tue, Feb 21, 2017 at 9:10 AM, Sergey notifications@github.com wrote:
@pablopeu https://github.com/pablopeu Dear friend, you have the same descriptions, images, headers on all pages :( And how to make so that they were taken to a page?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tkuther/piwigo-bootstrap-darkroom/issues/34#issuecomment-281326768, or mute the thread https://github.com/notifications/unsubscribe-auth/AYlubO-Ks41uKXd4D5-I3JyYt6Zm59vnks5retRPgaJpZM4MFQaP .
I know about the plugin, I need been to a different image and description for each page. You did not understand me :(
OK. I added a workaround that bypasses the broken $meta_ref handling in core and the heck just sets author and description if available.
If you really want Open Graph data, create a local_head.tpl in themes/bootstrap_darkroom/ and add stuff there. For individual image, see meta stuff example in header.tpl ($COMMENT_IMG, $INFO_AUTHOR variables can be re-used here)
@tkuther did not find of the variable image, it is difficult to understand without programming skills :(
<meta property="og:type" content="website">
<meta property="og:site_name" content="$TITLE">
<meta property="og:title" content="$PAGE_TITLE">
<meta property="og:description" content="$CONTENT_DESCRIPTION">
<meta property="og:url" content="$current.path">
<meta property="og:locale" content="ru_RU">
<meta property="og:image" content="?">
<meta property="og:image:width" content="968">
<meta property="og:image:height" content="504">
Integrate into the theme the possibility of integrating a meta description