Phoca Open Graph Plugin : custom image fields

Phoca plugins - support for all Phoca plugins except Phoca Gallery plugins
Semaphore
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 14 Oct 2021, 20:56

Phoca Open Graph Plugin : custom image fields

Post by Semaphore » 14 Oct 2021, 21:50

Hi,
We need to use an image custom field as og:image
We can image it would be just after the Fulltext image in the select image flow.

If I write a user case :
As a admin
I want to be able to select an image custom field
In order to select it for displaying it in og meta

Sadly I need a fix very quickly : if you have a quick and dirty code to implement in the phocaopengraph for using a specific custom field (no need for a backoffice UI for selecting the field).

Thanks for your help (if you can of course)

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 44318
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Open Graph Plugin : custom image fields

Post by Jan » 19 Oct 2021, 20:05

Hi, for now, this procedure is used for displaying the image:

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

If this does not fit your needs, then the only one option is to customize the code directly.

Jan
If you find Phoca extensions useful, please support the project

Post Reply