Open Small-Systems opened 1 year ago
Hello, I haven't investigated looping/rendering the blocks a lot yet.
Right now there's no sanitisation options/methods for parsing content, everything is done on storing the data, then it's simply retrieved by native functions (Cms/Field
namespace). So the native toLayout
method should work; if not, does your content files get written correctly ? It could be broken, I haven't used this for a while.
However, on the panel side (Form/Field
namespace), the panel parses content on retrieval, that's why it could work there.
I have a question about the output of content in templates using the
toLayouts()
function.Here is a super simple example use case of the plugin.
Notice below how the content of the gallery block in the English translation is empty.
In the panel your plugin is looping through the layouts/columns/blocks and uses the original or the translation correctly in the layouts field.
However, when using
toLayouts()
the plugin has no effect on the output of the field (I get an empty gallery block). Is this expected behavior?Original German, gallery block can not be translated, text block can be translated
English translated layout, only text block has been translated