Page 1 of 1

OpenGraph Plugin and JSitemap

Posted: 06 Aug 2018, 01:09
by jgehrhardt
Hi,

I have been using Phoca Open Graph Plugin (System - Phoca Open Graph Plugin) and it has been working rather well for me. Recently, I updated JSitemap (joomla extension that manages sitemaps) and it no long generated the XML maps. When I contacted them, they told me that the XML was not being well formed and told me to deinstall other plugins until it worked. When I deinstalled Phoca Open Graph Plugin, the JSitemap works, however, now I do not get OG images for content links I submit to Facebook Developer Cache. Is there some setting that can harmonize these two plugins?

Here's a link for more info with regards to JSitemap & Joomla XML: https://storejextensions.org/faq/xml-si ... atted.html

Really like Phoca Open Graph and would like to find a solution.

Thanks.

Re: OpenGraph Plugin and JSitemap

Posted: 07 Aug 2018, 13:33
by Jan
Hi, will be great to get info, which view format is used for the displaying of XML in the JSitemap, so it can be ignored.

The code is following inside the system plugin:

Code: Select all

$format = $app->input->get('format');
if ($format == 'feed' || $format == 'pdf' || $format == 'json' || $format == 'raw') {
			return true;
		}
So if you let me know what is the format for the XML (not 100% it is XML), I can edit the plugin so it will be ignored in such kind of file.

Jan

Re: OpenGraph Plugin and JSitemap

Posted: 25 Aug 2018, 16:13
by jgehrhardt
Hi, Sorry for tardy reply. URL's to views that return error:

https://reconcilechurchmiami.org/index. ... xml&xslt=1

.../index.php?option=com_jmap&view=sitemap&format=images
.../index.php?option=com_jmap&view=sitemap&format=gnews
.../index.php?option=com_jmap&view=sitemap&format=mobile
.../index.php?option=com_jmap&view=sitemap&format=videos
.../index.php?option=com_jmap&view=geositemap&format=xml
.../index.php?option=com_jmap&view=sitemap&format=rss

Thanks for looking into this.

Re: OpenGraph Plugin and JSitemap

Posted: 27 Aug 2018, 14:42
by Jan
So in fact this needs to be customized for each format set by the jmap:

Code: Select all

$format = $app->input->get('format');
if ($format == 'feed' || $format == 'pdf' || $format == 'json' || $format == 'raw') {
			return true;
		}
+ $format == 'images'
+ $format == 'gnews'
+ $format == 'mobile'
+ $format == 'videos'

...

Jan

Re: OpenGraph Plugin and JSitemap

Posted: 27 Aug 2018, 17:41
by jgehrhardt
On initial testing, the two work together, thanks. I will let you know if I spot any issues while in production.

Re: OpenGraph Plugin and JSitemap

Posted: 02 Sep 2018, 00:50
by Jan
Ok