Closed Patta closed 9 months ago
@Patta Thanks for the feature request. AFAIK the structured data is added to the schema manager immediately when the cObj is executed. So there seems to be some quite work to be done to get it in. An idea: return schema type models back as long as the cObj is a sub-cObj. Then it has to be determined when the outer-most SCHEMA cObj is reached to add it to the schema manager.
I am now adding the event schema markup with fluid viewhelpers and data from typoscript constants. I think its only needed to add the typoscript subtype limitation to the typoscript documentation.
closing the issue as it is no longer relevant to me. thank you for your work!
Is your feature request related to a problem? Please describe.
Want to use typoscript to define multiple offers, e.g. for an event.
This should be generated (detailed properties omitted):
Describe the solution you'd like
I have tried that, but it does not work:
That neither, offer 2 overwrites offer 1:
That neither, typeerror (Brotkrueml\Schema\TypoScript\PropertiesAdder::addProperty(): Argument #2 ($name) must be of type string, int given, called in /var/www/html/vendor/brotkrueml/schema/Classes/TypoScript/PropertiesAdder.php on line 54)
Describe alternatives you've considered
Conversation with @brotkrueml at slack channel: https://typo3.slack.com/archives/CV36M73D5/p1694073471419259
Additional context
Class "TypoScriptToSchema" is the starting point.