zeroseven / z7_blog

[DEPRECATED] Blog-Extension for TYPO3
https://extensions.typo3.org/extension/pagebased_blog
3 stars 1 forks source link

Idea: Structured data into a Fluid Partial #3

Closed alsodenn closed 3 years ago

alsodenn commented 3 years ago

How about inserting the structured data into a Fluid Partial? Then you could easily adapt them. At the moment, for example, the author's social profiles are missing. Everyone has their own preferences about what should and should not be included ;-). A partial would be an easy way to adapt this yourself.

raphaelthanner commented 3 years ago

Hello @alsodenn, you are definitely right.. We will add the authors social profiles to the structured data soon. Currently we added different ways to extend or manipulate the structure data:

  1. Add static typoscript
  2. Add methode getStructuredData to your Post model. (see Extend models and demands classes)
  3. Use the StructuredDataEvent (PSR-14 Events) to manipulate the structured data

In practice, the arrays that are automatically converted into structured data have proven themselves quite well, as the data only has to be provided. On the other hand, the syntax in the Fluid template with curly brackets often leads to problems.

For the time being, we consider this to be enough ways to manipulate the structured data that is put out. Thank you for your input and let us know if you have any additional feedback.