Skip to content

Projektanlegen schlägt fehl wenn Baustein keine Settings hat

Wenn man in der XML keine settings definiert, bricht das Projektanlegen ab. In Folge dessen werden gar keine Demodata angelegt.

<-- Wenn das fehlt, bricht alles ab -->
<attribute name="settings">...</attribute>

Hier ist ein Beispiel eines korrekt definierten Bausteines.

<brick identifier="brick.startpage.topHero">
    <attributes>
        <attribute name="title">Startpage - Top Hero</attribute>
        <attribute name="type">\QUI\Bricks\Controls\TextAndImage</attribute>
        <attribute name="customfields"><![CDATA[]]></attribute>
        <attribute name="areas"><![CDATA[,headerSuffix,]]></attribute>
        <attribute name="settings">
            <![CDATA[{"classes":["bg-light","image-effect","image-effect--right","image-effect--white"],"width":"","height":"","image":"${media:imagePlaceholder.vertical.grey}","imageOnLeft":false,"imageShadow":false,"fullImageHeight":false,"maxImageWidth":"400","imageZoom":false,"textPosition":"center","textImageRatio":"40"}]]>
        </attribute>
        <attribute name="content">
            <![CDATA[<h1 class="fw-bold fs-3xl">SED CURSUS TURPIS <span style="color: var(--qui-color-primary);">VITAE</span> TORTOR</h1><p>Integer tincidunt. Phasellus tempus. Nulla sit amet est. Pellentesque egestas, neque sit amet convallis pulvinar, justo nulla eleifend augue, ac auctor orci leo non est. Etiam iaculis nunc ac metus.</p><p><a class="button" href="#">Kontakt</a> </p>]]>
        </attribute>
    </attributes>
</brick>