Replies: 6 comments
-
At this time there is no "element" concept. The template defines blocks, and each block define its own html using properties. There is no definition of elements at all. In order to support this we would need to define element-containers and elements (like we do with block-container and blocks) This idea would help the "social icons block" because we could let the user to sort the icons: the social icon block could be implemented with something more specific (like "collections support") because the html for each social icon is identical, so "elements have the same structure") Can you detail your specific use case so I better understand it? Idea #68 is related to this Major difference between #68 and this one is that #68 is a "two-level" where the "elements" would be "global" and could be added to any block, while this idea is to have each block zone (element-container) to define it's own elements and you just work inside that zone (add elements/hide elements/sort elements). |
Beta Was this translation helpful? Give feedback.
-
Example with "social icons" is good. In my case I want give a user a form with predefined html fields (name, age, email, phone) wrapped with labels or li, but user should be able to reorder fields (li with content) like he prefer. |
Beta Was this translation helpful? Give feedback.
-
Well, the social icons and the html fields requires 2 different implementations. Speaking of data model , the social icons can be defined with an array of objects (social icons) where the objects are all of the same type. Also, for the social icons you also need an option to choose a new social network to be added or to remove one from the list (so add and remove in addition to sort).. I don't know if this is the same for the "form" solution. |
Beta Was this translation helpful? Give feedback.
-
In "form" solution I do not need add new fields. Just reorder and show/hide (already implemented). Why you need array of objects?
so it must have static html structure: pretty simple, isn't? |
Beta Was this translation helpful? Give feedback.
-
any news about this feature? |
Beta Was this translation helpful? Give feedback.
-
Thisi is not currently in our roadmap. |
Beta Was this translation helpful? Give feedback.
-
There is any option to reorder elements in single template block?
For example I have block with 3 fields (f1, f2, f3).
I can add it to template, than I want reorder items in this block (when editing template)
For example I want following order (edited via style toolbox) - f2, f3, f1.
Solution can be:
OR
Beta Was this translation helpful? Give feedback.
All reactions