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.
OpenGraph Plugin and JSitemap
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: OpenGraph Plugin and JSitemap
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:
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
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;
}
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 3
- Joined: 06 Aug 2018, 00:57
Re: OpenGraph Plugin and JSitemap
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.
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.
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: OpenGraph Plugin and JSitemap
So in fact this needs to be customized for each format set by the jmap:
+ $format == 'images'
+ $format == 'gnews'
+ $format == 'mobile'
+ $format == 'videos'
...
Jan
Code: Select all
$format = $app->input->get('format');
if ($format == 'feed' || $format == 'pdf' || $format == 'json' || $format == 'raw') {
return true;
}
+ $format == 'gnews'
+ $format == 'mobile'
+ $format == 'videos'
...
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 3
- Joined: 06 Aug 2018, 00:57
Re: OpenGraph Plugin and JSitemap
On initial testing, the two work together, thanks. I will let you know if I spot any issues while in production.
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: OpenGraph Plugin and JSitemap
Ok
If you find Phoca extensions useful, please support the project