Nested Elements

87 views
Skip to first unread message

Jeremy Shearer

unread,
Feb 17, 2015, 11:54:54 AM2/17/15
to alche...@googlegroups.com
This is mainly just a sanity check to make sure I'm not missing something behind the architecture of AlchemyCMS.

I want to nest an Element inside of another Element. 
I want users to be able to add Elements to a page, and then dynamically add child Elements to that Element.
From what I can tell the only thing that can be nested inside an element in this fashion is an Essence.
So I'm creating my own custom Essences and using the available_contents key in my elements.yml to enable them for specific Elements.

This looks like the right path to go down, but before I get to deep into it I want to see if this approach is the "Alchemy Way"
Any input or guidance would be much appreciated, thanks!

Thomas von Deyen

unread,
Feb 18, 2015, 11:14:27 AM2/18/15
to alche...@googlegroups.com
Hi Jeremy,

it depends on what you want to do ;)

An element is currently not nestable inside another element.

The only option is to use a cell, but cells are not draggable/sortable by the user. They are fixed
layout areas.

The "available_contents" are dynamically addable contents/essences. These are not elements. Elements
are groups of contents/essences. Essences/Contents are single value (text, richtext, picture, boolean, etc.)

Maybe single values are exactly what you are looking for. For more complex "elements", you need an actual
element, though. But maybe cells are ok for you?

Let me hear if this works for you.

Best Thomas

signature.asc
Reply all
Reply to author
Forward
0 new messages