[5.0] Schema System Plugin: data not in $this->item->schema #43263
Replies: 9 comments
-
Hi @angieradtke The data managed by schema plugins is just uses to describe our content and is injected to the head tag of the page in JSON+LD format automatically by the plugins. It is not used for displaying purpose, so the data is won't be available as you expect. If you want to use it for your own purpose, you would need to write code query the data from database. |
Beta Was this translation helpful? Give feedback.
-
A real sustainable solution would be to use the content from custom fields as the data source and to transfer the data to the schema plugins. A mix of dynamic values and fixed values. |
Beta Was this translation helpful? Give feedback.
-
Hi Guys,
and later
?> |
Beta Was this translation helpful? Give feedback.
-
I think the data for displaying is the job of custom fields, not schema data, thus you would need to write the code if you want to re-use that data for displaying purpose. Ideally, It would be great if it could work as @tecpromotion described above, but that's another discussion.
|
Beta Was this translation helpful? Give feedback.
-
Actually, schema plugins are nothing more than predefined custom fields, right? |
Beta Was this translation helpful? Give feedback.
-
That's right, but it is designed to use for different purpose, not for displaying (at least I believe that). |
Beta Was this translation helpful? Give feedback.
-
agree |
Beta Was this translation helpful? Give feedback.
-
That would make sense, but would certainly be complicated. |
Beta Was this translation helpful? Give feedback.
-
I convert this to a discussion to define the request in more detail. |
Beta Was this translation helpful? Give feedback.
-
The Schema.org plugins are great.
I have noticed that the data for a job posting, for example, is not stored as an article property.
$this->item->schema
That's a pity because I could process the information directly in an article override and display it in the frontend.
That would be great and I wouldn't need a database query to display the information from the schema plugins.
What Do you think?
I hope I have expressed myself reasonably clearly.
Beta Was this translation helpful? Give feedback.
All reactions