I want to use sulu as a pagebuilder. A have a block with multiple elements in it. Now my next goal is to provide fields to sho a "Accordion-Script".
The Elements consist of
I hoped that i could use a block in an other block like so:
<block name="contents"
default-type="editor"
minOccurs="0"
maxOccurs="200"
mandatory="true">
<meta>
<title lang="de">Artikelinhalt</title>
<title lang="en">Contents</title>
</meta>
<types>
<type name="tabs">
<meta>
<title lang="de">Tabs</title>
<title lang="en">Tabs</title>
</meta>
<properties>
<block name="tabContents"
default-type="editor"
minOccurs="0"
maxOccurs="200"
mandatory="true">
<types>
<type name="tabContent">
<meta>
<title lang="de">Texteditor</title>
<title lang="en">Text editor</title>
</meta>
<properties>
<property name="article" type="text_editor">
<meta>
<title lang="de">Inhalt</title>
<title lang="en">Content</title>
</meta>
<params>
<param name="table" value="true"/>
<param name="link" value="true"/>
<param name="paste_from_word" value="true"/>
<param name="height" value="400"/>
<param name="max_height" value="2000"/>
<!-- CKEditor Parameters examples: -->
<param name="extra_allowed_content" value="img(*)[*]; span(*)[*]; div(*)[*]; iframe(*)[*]; script(*)[*]" />
</params>
</property>
</properties>
</type>
</types>
</block>
</properties>
</type>
[...] here are my other type-attributes.
It does not work (backend is not loading the edit-page at all). Is there a way to do that?
The Page should later be editable by the user and could have a structure like that:
- block
- text
- accordion
- text
- text
- text
- image
With Sulu 2.1.0 nested block support has been added to the core, see the release notes here https://sulu.io/blog/sulu-release-2-1-0-2-0-9
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With