Details
-
New Feature
-
Resolution: Unresolved
-
Major
-
Unknown
-
Description
From Marius:
You can follow what the date macro (https://github.com/xwikisas/application-task/tree/master/macro-date) did:
- define a Java type https://github.com/xwikisas/application-task/blob/master/macro-date/macro-date-api/src/main/java/com/xwiki/date/DateType.java
- annotate the macro parameter using the previously defined type https://github.com/xwikisas/application-task/blob/master/macro-date/macro-date-api/src/main/java/com/xwiki/date/macro/DateMacroParameters.java#L52
- write the displayer (for edit) https://github.com/xwikisas/application-task/blob/master/macro-date/macro-date-default/src/main/resources/templates/html_displayer/datetype/edit.vm
From Thomas:
Note that you don't need to use @PropertyDisplayType, you can directly use the type if you write the corresponding converter,
JIRAs for the implemented feature:
Attachments
Issue Links
- is related to
-
XCOMMONS-1527 Create an HTML Displayer interface
- Closed
-
XWIKI-15827 Add support for binding a specific input to a macro parameter type
- Closed