Page 1 of 1

OpenGraph on category blog pages

Posted: 01 Jun 2018, 13:06
by aszilagyi
Hi, this plugin is great but it has a problem on category blog pages. It takes the title and the description from the category of the first article on the page. But on our page we have a hierarchical category system. The category blog page is set for a higher-level category which includes several subcategories. The articles are in subcategories. The plugin only looks at the first article and it only displays the title and description of the subcategory of the first article. But it should instead take the category defined for the whole page, which is a higher-level category. Can this be done?

Re: OpenGraph on category blog pages

Posted: 02 Jun 2018, 11:24
by Jan
Hi, try to use the combination of content plugin (for articles) and system plugin for all other places on the site, maybe it can solve it :idea:
https://www.phoca.cz/phoca-open-graph-plugin
https://www.phoca.cz/phoca-open-graph-system-plugin
Jan

Re: OpenGraph on category blog pages

Posted: 02 Jun 2018, 11:44
by aszilagyi
Hi, thank you for the reply. I actually fixed it by replacing $row->catid by $app->input->get('id') when $view == 'category' in the php file.
Thank you for this very useful plugin!

Re: OpenGraph on category blog pages

Posted: 06 Jun 2018, 23:20
by Jan
Ok