brotkrueml / schema

TYPO3 extension providing an API and view helpers for schema.org markup

Home Page:https://extensions.typo3.org/extension/schema

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Assigning multiple sub types in Fluid throws error

brotkrueml opened this issue · comments

When assigning multiple sub types (three or more) to a type with a Fluid view helper, an error occurs:

Call to a member function toArray() on array

Example:

<schema:type.organization
    name="Acme Ltd."
    url="https://www.example.org/"
    logo="https://www.example.org/logo.png"
>
    <schema:type.contactPoint
        -as="contactPoint"
        telephone="+49 030 123456789"
        contactType="sales"
        areaServed="DE"
    />
    <schema:type.contactPoint
        -as="contactPoint"
        telephone="+48 22 123456789"
        contactType="sales"
        areaServed="PL"
    />
    <schema:type.contactPoint
        -as="contactPoint"
        telephone="+90 212 123456789"
        contactType="sales"
        areaServed="TR"
    />
</schema:type.organization>