EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #07726
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Open graph Tags
- To: <martin.braendle@id.uzh.ch>
- Subject: Re: [EP-tech] Open graph Tags
- From: James Kerwin <jkerwin2101@gmail.com>
- Date: Fri, 1 Mar 2019 16:11:07 +0000
Hi James,
we decided against using Open Graph tags because they do not validate against HTML5.
Best regards,
Martin
--
Dr. Martin Brändle
Zentrale Informatik
Universität Zürich
Stampfenbachstr. 73
CH-8006 Zürich
"James Kerwin via Eprints-tech" ---28.02.2019 17:36:00---Hi All, Has anybody attempted to use Open Graph tags in EPrints to facilitate
Von: "James Kerwin via Eprints-tech" <eprints-tech@ecs.soton.ac.uk>
An: <eprints-tech@ecs.soton.ac.uk>
Datum: 28.02.2019 17:36
Betreff: [EP-tech] Open graph Tags
Gesendet von: <eprints-tech-bounces@ecs.soton.ac.uk>
Hi All,
Has anybody attempted to use Open Graph tags in EPrints to facilitate sharing links on social media?
I'm attempting it now and I can get it to work on EPrint abstracts, but not on the repository home page. On the latter I'm getting a title different to my test title and an image that isn't the one I stipulate.
For example, my Test versions of the og tags are:
<meta property="og:title" content="zebra"/>
<meta property="og:image" content="https://www.liverpool.ac.uk/media/livacuk/liverpool-advantage.jpg"/>
I have included these in my default.xml template. This allows the link to be shown with the correct title and image for abstracts. Unfortunately it doesn't work for the home page, so I inserted these tags into my index.xpage which doesn't seem to have worked either. When sharing a link to the home page it shows me the title of the page that exists between the <title></title> tags in default.xml and the first image that occurs in index.xpage.
I've tried putting the OG tags in different places, restarting the server after changes and removing the previously mentioned <title></title> tags to see what happens and no success so I'm assuming it might be a quirk of EPrints? Or am I putting these in the wrong place? I appreciate it's a broad question as we all have different tags etc in our various files, but if anybody can shed any light on this I would be really grateful.
When I started this earlier I thought it wouldn't take long as it's not particularly difficult, how wrong I was!
Thanks,
James*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/
- Follow-Ups:
- Re: [EP-tech] Open graph Tags
- From: James Kerwin <jkerwin2101@gmail.com>
- Re: [EP-tech] Open graph Tags
- References:
- [EP-tech] Open graph Tags
- From: James Kerwin <jkerwin2101@gmail.com>
- [EP-tech] Antwort: Open graph Tags
- From: <martin.braendle@id.uzh.ch>
- Re: [EP-tech] Open graph Tags
- From: James Kerwin <jkerwin2101@gmail.com>
- [EP-tech] Open graph Tags
- Prev by Date: Re: [EP-tech] Open graph Tags
- Next by Date: [EP-tech] EPrints job at Leeds
- Previous by thread: [EP-tech] EPrints/CRIS
- Next by thread: [EP-tech] DOI handling in orcid_support_advance
- Index(es):