Announcement

#1 2013-10-07 20:26:59

jimaek
Member
2013-05-17
41

Add meta tags in header for album thumbnail for fb, twitter, reddit...

For albums is there any way to add to the header.php meta tags like:

<link rel="image_src" href="file.jpg"/>
<meta name="twitter:image" value="file.jpg"/>
<meta property="og:image" content="file.jpg"/>

Where file.jpg the first image of the album.
This will allow websites like twitter, facebook and reddit to correctly get the thumbnail image of the URL.


Any ideas?

Thank you

Offline

 

#2 2013-10-07 21:18:58

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7207

Re: Add meta tags in header for album thumbnail for fb, twitter, reddit...

Hi :-)

Yes you can add this with personel plugin


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#3 2013-10-07 21:20:36

jimaek
Member
2013-05-17
41

Re: Add meta tags in header for album thumbnail for fb, twitter, reddit...

Link? Can't find it

Offline

 

#4 2013-10-07 21:26:04

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7207

Re: Add meta tags in header for album thumbnail for fb, twitter, reddit...

The plugin isn't written yet
but it's possible to write it, take [extension by ddtddt] Meta as model

Last edited by mistic100 (2013-10-07 21:50:09)


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#5 2013-10-07 21:34:36

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Add meta tags in header for album thumbnail for fb, twitter, reddit...

hello

you can do it yourself with some simple coding (well perhaps not that simple :-) )

but there is a reason why it's not done : there is no simple and global function to know witch image represents an album, because perhaps all your photos are public but it is not the case of everyone
it would require additional computing to know what would see a guest user (practically, visitors from twitter/reddit are guests for your gallery)

it's a technical part of Piwigo witch needs to be improved :)

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact