Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-18063

Allow wiki macros to change their macro content during their execution

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 12.6.4
    • Fix Version/s: None
    • Component/s: Rendering - WikiMacro
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      When being displayed, a wiki macro could be able to change its own macro content in the document in which it is used.

      While this feature may look strange at first glance, it can actually be very interesting if we consider the case of documents being edited through WYSIWYG : when starting to edit a document in WYSIWYG, XWiki will render the document in HTML (and thus, will execute the macros of the document). A macro can then wait for its execution in such context, and pre-load its macro content with some content coming from another page of the wiki, or anywhere else. Then, through the wikimacrocontent macro, this pre-loaded content becomes editable in WYSIWYG mode transparently for the user.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                caubin Clément Aubin
                Reporter:
                caubin Clément Aubin
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Date of First Response: