Target:
Trying to build a lesson, where all the data comes from the CMS (aka building the page with actual objects is impossible). The idea is I have multiple blocks in each lesson of different block types (but the height of the box should update based on content).
For example, I could have a 5-line text block, then a 3-line example block, then 10-line explanations again. The order/amount of blocks is not fixed.
Attempts:
Originally I tried doing it all using custom elements, but then I found out they have a fixed size (which is honestly really weird), then I changed the concept into trying to have a repeater, and then set the content of it based on the block type (thought of having a block with different widgets for the different types but that’s not final yet).
Problem:
…is this even possible? all attempts I make to try having non-constant types of elements within the repeater seem to be impossible?? Every trip to the documentation sends me back to custom elements, which are a no-go due to having a fixed height.
Is there any method to create multiple elements programmatically (preferably inside of a repeater) and still have flexible height? (other than overriding the HTML which is a last-resort solution)
Product:
using Wix Editor, Repeaters, Custom Elements and Velo