Page 2 of 2

Re: Phoca Open Graph Plugin

Posted: 30 Sep 2017, 13:47
by jc-rocks
Hi Poussemousse,

I'm not the right person to ask but, once I had installed and published the extension, what I did was create tags on a per-document basis using the document tag system. As far as I can tell this is wrong but it seems to work at least for the image. I haven't modified anything in any PHP files.

Hopelessly inadequate, I know but right now it's the best I can do ... until I get someone to explain it to me in plain English I'm a bit screwed.

James

Re: Phoca Open Graph Plugin

Posted: 02 Oct 2017, 12:12
by Poussemousse
Hi JC,
thank you for your feedback but I am sure something pretty obvious is missing to use it correctly, especially for non Web specialist.
That's a pity there is no documentation with attached pictures to show examples of usage, maybe it comes one day...

Poussemousse

Re: Phoca Open Graph Plugin

Posted: 02 Oct 2017, 12:38
by Jan
Hi, before testing it in Facebook development site, just see the html source code of your site and see which url to image has image meta tag.


Image

Jan

Re: Phoca Open Graph Plugin

Posted: 02 Oct 2017, 12:42
by jc-rocks
Hi Jan,

So, not in the article tags? Must this stuff be put into the actual html code for the document?

Thx

James

Re: Phoca Open Graph Plugin

Posted: 02 Oct 2017, 13:10
by Jan
Hi, it is up to you which image will be used, see example:

This article:
https://www.phoca.cz/news/952-phoca-dow ... 3-released

has defined the image here:
Image
in Aricle - folder Images and Links

https://www.phoca.cz/documents/70-phoca ... open-graph

1) because there is no image set in plugin parameters
2) no image set in category parameters
3) no intro image in article category
4) but full image in article category - so this will be used.

In case there will be not defined 4) Phoca Open Graph plugin tries to find one in article (but not in content plugins)
If it does not find any then
5) then it tries to search plugin folder
6) or another plugin parameter

So you can manage which image will be displayed in meta tags, when you manage it, then you just take a look at the source code, if the image is right.

Jan