dachcom-digital / pimcore-seo

The last SEO Bundle for Pimcore you'll ever need!
Other
38 stars 14 forks source link

Adding a schema via SEO panel and via a custom extractor does not output JSON #27

Closed alexej-d closed 1 year ago

alexej-d commented 2 years ago
Q A
Bug report? yes?
Feature request? no
BC Break report? no
RFC? no

It seems adding schema is not possible with this bundle as it looks like a new HeadMeta instance is being spin up and it's rawItems are not being output when calling the pimcore_head_meta function.

I have tested this on Pimcore 6.9 and bundle version 1.0, and Pimcore 10.2.5 and the newest bundle version.

dennistiboni-extera commented 1 year ago

I ran into the same problem. There is a solution @solverat ?

solverat commented 1 year ago

I'm afraid but I don't get the issue here.

Adding a schema block to my document / object:

<script type="application/ld+json">
{
    "@context": "http://schema.org",
    "@type": "WebSite",
    "url": "http://website.com",
    "name": "wbs",
    "description": "Web Studio"
}
</script>

Object

image

Document

image

Within my main layout template: image

And my object layout: image

...everything works fine:

image

solverat commented 1 year ago

Please check if you've completed the setup liked described here: https://github.com/dachcom-digital/pimcore-seo/blob/master/docs/00_Setup.md#setup

alexej-d commented 1 year ago

@solverat I came across this bug with version 2.0.1 of your bundle. At version 2.2 there seems to not be any issues regarding LD+JSON