Wrong "og: description" output

Phoca plugins - support for all Phoca plugins except Phoca Gallery plugins
User avatar
mediafoks
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 11 Sep 2021, 17:01

Wrong "og: description" output

Post by mediafoks »

Sorry for the Google Translate machine translation. I'll try to explain the problem.

There are several nested categories, for example three. There is a menu for these categories. Menu items (blog categories) are also nested, multi-level.
In the parent menu item, "og: description" is displayed correctly, in accordance with the category "description".
In the last, third nested menu item, "og: description" is also displayed correctly, in accordance with the category "description".
But the "og: description" of the second menu item is the same as its descendant, the third menu item.
If the nesting of categories is large, then "og: description" is displayed incorrectly.

Categories:

Category_1
-Category_2
--Category_3

Menu:

Blog Category_1
-Blog Category_2
--Blog Category_3


OpenGraph:

Blog Category_1 - "og:description" = description Category_1
-Blog Category_2 - "og:description" = description Category_3
--Blog Category_3 - "og:description" = description Category_3
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Wrong "og: description" output

Post by Jan »

Hi, what is the settings of description in plugin?

Image

Does the og:description fit the standard meta tag description?

Jan
If you find Phoca extensions useful, please support the project
User avatar
mediafoks
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 11 Sep 2021, 17:01

Re: Wrong "og: description" output

Post by mediafoks »

User avatar
mediafoks
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 11 Sep 2021, 17:01

Re: Wrong "og: description" output

Post by mediafoks »

Found the problem.
If the menu item is blog category, and the Include Subcategories option is "all", then "og: description" is inherited from the child category.
If the menu item Include Subcategories is "none", "og: description" is displayed correctly
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Wrong "og: description" output

Post by Jan »

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