OpenGraph on category blog pages
-
- Phoca Newbie
- Posts: 2
- Joined: 01 Jun 2018, 12:55
OpenGraph on category blog pages
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:
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: OpenGraph on category blog pages
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
https://www.phoca.cz/phoca-open-graph-plugin
https://www.phoca.cz/phoca-open-graph-system-plugin
Jan
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
-
- Phoca Newbie
- Posts: 2
- Joined: 01 Jun 2018, 12:55
Re: OpenGraph on category blog pages
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!
Thank you for this very useful plugin!
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: OpenGraph on category blog pages
Ok
If you find Phoca extensions useful, please support the project