Open Graph - multiple images from article + newsflash module

General Forum
wymorfis
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 05 Jan 2024, 02:54

Open Graph - multiple images from article + newsflash module

Post by wymorfis »

My homepage consists of a standard article which includes a newsflash module. Phoca open graph creates multiple image tags, one for each of the newsflash articles, and one for the primary parent article, but I always end up with the wrong image on Facebook. I added mod_articles_news to both Disable In Views and Disable In Options, no dice. How do I get this to work?

<meta property="og:title" content="newsflash atricle title" />
<meta property="og:type" content="article" />
<meta property="og:image" itemprop="image" content="newsflash atricle image" />
<meta property="og:url" content="site url" />
<meta property="og:site_name" content="site name" />
<meta property="og:description" content="newsflash article description" />
<meta property="fb:app_id" content="xxx" />
<meta property="og:title" content="newsflash atricle title" />
<meta property="og:image" itemprop="image" content="newsflash atricle image" />
<meta property="og:description" content="newsflash article description" />
<meta property="og:title" content="main article title" />
<meta property="og:image" itemprop="image" content="primary article image" />
<meta property="og:description" content="primary article description" />
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Open Graph - multiple images from article + newsflash module

Post by Jan »

Hi, unfortunately, modules do not have any view, as they are displayed on component's view websites. So there cannot be filter options for modules and views.

Did you try to enable this parameter: "Check Article Layout Parameter"?

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