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

Allow to display the content of a document like any xobject field

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 12.10.10
    • Old Core
    • None
    • Unknown

    Description

      XWikiDocument currently exposes an API to display a field in edit mode or any other mode. However it's not possible to display the content of the document in edit mode.
      I recently had this usecase when working on an extension sheet, where the descriptions of some entries are stored as the content of the document: I wanted to allow people to edit this content directly in my extension sheet, and using $doc.display('content', 'edit') is not working since it's not part of my xclass.
      A workaround for now is to create a pseudofield in the xclass containing only a {{include reference="AppWithinMinutes.Content"/}}.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              surli Simon Urli
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: