OpenGraph on category blog pages

Phoca plugins - support for all Phoca plugins except Phoca Gallery plugins
aszilagyi
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 01 Jun 2018, 12:55

OpenGraph on category blog pages

Post 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?

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

Re: OpenGraph on category blog pages

Post 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
If you find Phoca extensions useful, please support the project
aszilagyi
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 01 Jun 2018, 12:55

Re: OpenGraph on category blog pages

Post 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!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: OpenGraph on category blog pages

Post by Jan »

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