Making a custom property editor for handling content in list group
I am working on making a property editor that allows the content editor to add "infoboxes" to a page, each of which contains a header and a list of textstrings.
But I'm not sure how to implement the ul and li elements for the content creator. It should be possible to add new li elements to the list, which consists of a text string. I'm also not too sure how my grid datatype would look for this to work. Currently my datatype looks like this: http://i.imgur.com/DgwqzJd.png
The boxes automatically align using the flexbox system, so that is no problem.
Rather than re-invent the wheel I'd be tempted to use an existing editor that would allow this - such as Nested Content or Archetype. You could easily achieve what you wanted with either of these.
Making a custom property editor for handling content in list group
I am working on making a property editor that allows the content editor to add "infoboxes" to a page, each of which contains a header and a list of textstrings.
The desired output is something like this: http://i.imgur.com/SWH9lKX.png
I already have the markup ready for the boxes, but it should be possible for the content editor to add new boxes with their own content.
I was thinking of creating a new property editor for the header and the body text. i.e. something like this:
A complete infoboks with static content currently has this code:
But I'm not sure how to implement the ul and li elements for the content creator. It should be possible to add new li elements to the list, which consists of a text string. I'm also not too sure how my grid datatype would look for this to work. Currently my datatype looks like this: http://i.imgur.com/DgwqzJd.png
The boxes automatically align using the flexbox system, so that is no problem.
Rather than re-invent the wheel I'd be tempted to use an existing editor that would allow this - such as Nested Content or Archetype. You could easily achieve what you wanted with either of these.
is working on a reply...