This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-8bc782dc-e48c-48f9-807b-ccd30e3c662b XWIKI-25502 Open

Offer the layouts of the container macro and the menu types as lists in the Edit Macro dialog

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-1c5f3ac8-f708-4fb8-a5e2-f6b01e538985 Charpentier Lucas created this issue on 22/Oct/26 15:40
 
Summary: Offer the layouts of the container macro and the menu types as lists in the Edit Macro dialog
Issue Type: cid:jira-generated-image-avatar-8bc782dc-e48c-48f9-807b-ccd30e3c662b Improvement
Affects Versions: 17.10.14, 18.8.0
Assignee: Unassigned
Components: Menu, Rendering - Container Macro
Created: 22/Oct/26 15:40
Priority: cid:jira-generated-image-static-major-ddf7662f-1160-4294-95f4-bc715e562b8d Major
Reporter: Charpentier Lucas
Description:

The container and menu macros take a value from a short list in a free text field of the Edit Macro dialog, so a typo or another case is accepted and gives no layout or a plain list.

The macros to change, with the file where most of the fix is done:

The main problems:

  • The layouts of container are components, only columns in XWiki Standard, so their list has to be computed on the wiki.
  • The menu type combines a type, horizontal or vertical, with modifiers, which a wiki macro cannot declare as a list.

Depends on

Most of these fields cannot be offered before these generic changes, each giving the macro the means to declare the expected value:

  • XWIKI-23045, which lets a parameter get its values from a provider, with or without custom values.

KOs covered

Macro Criterion Parameter Problem Depends on
container C4 input-assistance layoutStyle A free text field for one of the installed layouts, only columns in XWiki Standard: Columns is accepted and gives no layout. XWIKI-23045
menu C4 input-assistance type A free text field for horizontal or vertical plus the modifiers fixedWidth, collapsible and open, where a select and checkboxes could be used: Horizontal is accepted and gives a plain list. XWIKI-23045

Impact found on macro fluidity

These 2 KOs come from the WYSIWYG usability audit of the macros, under the criterion C4 input-assistance of its usability criteria. The page of each macro, linked in the table, has the full notes and the steps to reproduce. Fixing them means changing the declaration of the parameters in the macro definitions.