Homepage - Macro Options
Description
Community Feedback
Issues
- the include macro rendering is confusing because the user might think he can in-line edit the content
- trying to delete some words in the welcome message results in deleting the macro
- we need to make clear that the home page content is just using an include macro to display the content located in another place
Solution
- Have all macros collapsed by default
- Improve visual representation of macros inside the editor (blue background color always)
- Add 'collapse all'/'extend all' functionality inside the toolbar
- Make macros actions (edit, delete, expand/collapse, +custom) more visible
JIRAs
XWIKI-7948XWIKI-7949
XWIKI-7950
XWIKI-7951
XWIKI-7954
Current
Default: Macro Expanded
Macro Collapsed
Proposal
- 1. Macros collapsed by default
- 2. Macro Parameters
- 3. Macro Actions
- 4. Inline Macros
- x. Idea: Nested macros
1. Macros collapsed by default
Default: Macros Collapsed
The collapse/expanded functionality could be also added in the toolbar in order to be more discoverable
Expand Macros on demand
Even in the expanded form, keep the macro header and have a special background color for the content in order to show it's a macro
2. Macro Parameters
The macro's header contains at least the macro's name
We could also display some important macro params in the header (sorted maybe by relevance or dependent if there is enough place to display this information).
Adding params value to the header offers a better scanning and identification of the macros.
3. Macro Actions
Every macro should have 'edit', 'delete' actions + expand/collapse.
Some macros could add extended functionality like 'go to page' (include), etc.
Version 1
on hover - inside the macro's header
Version 2
on click - as popover
4. Inline Macros
Var 1: Showing headers (expanded state)
Var 2: Hiding headers (expanded state)
x. Idea: Nested macros
Specially useful for macros like: {columns}, etc.