Enonic version: 7.7.1
OS: Ubuntu
Problem
We’re having a recurring problem in projects – that content creators are having problems understanding how to change macros that should have both a “start tag” and “end tag”
[mymacro]
The body
[/mymacro]
We are at a point where we are considering stopping using those, even though they are very useful.
Solution
Let developers add a boolean config
in the macro xml, which indicates if the macro should have a body
.
If the configuration says that it should have a body:
- HtmlArea in Content Studio will produce a macro instruction pair (
[mymacro] ... [/mymacro]
instead of the current default[mymacro /]
) - The macro dialog should automatically include a
body
HtmlArea where the content creator can add the body upon creation of the macro, and edit it later together with other macro settings. (They should also still be able to edit the body inline in the parent HtmlArea.)
Thanks guys!
– Tom Arild