This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-23ffe0a0-ec60-45c6-b94c-b8182f719987 XWIKI-24149 Open

Allow to define a resolution order between feature and group for macro

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-e373c060-6f9c-4aa1-b4b7-e12171a4b256 Simon Urli created this issue on 20/Mar/26 09:50
 
Summary: Allow to define a resolution order between feature and group for macro
Issue Type: cid:jira-generated-image-avatar-23ffe0a0-ec60-45c6-b94c-b8182f719987 Improvement
Affects Versions: 17.10.4
Assignee: Unassigned
Components: Rendering
Created: 20/Mar/26 09:50
Priority: cid:jira-generated-image-static-major-4c719590-257e-4f5f-b6b8-75ee80174a10 Major
Reporter: Simon Urli
Description:

While writing some documentation regarding groups and features in wikimacro I discovered a limitation. Right now we have the following:

Let's say the developer needs to represent a reference which can be either a URL or an internal representation which is composed of a string and a type. The developer wants the following:

  • the user should be able to chose between a URL or an internal representation
  • when the internal representation is chosen, both the type and the string should be filled

For doing that, we need 3 parameters:

  • the URL parameter, which is bound to a feature "reference"
  • the string internal representation parameter, which is also bound to a feature "reference" but also associated to a group "internalrepresentation"
  • the type internal representation parameter which has characteristic as the previous: it's bound to a feature "reference" but also associated to a group "internalrepresentation"

And now, imagine we want to have systematically a suffix for that reference, and since it's part of the reference we want that suffix to be grouped.
So now we want a group containing the suffix and the feature choice we had before, we're adding one level to the tree.

Right now, this is not properly handled it seems we cannot achieve this representation.