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

Allow $doc.display() method to access document properties

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 2.7
    • None
    • Unknown

    Description

      It would be a nice feature to be able to use the display(fieldname) method to render specific HTML content depending on the view/edit/inline action for the current document's attributes (such as title, parent, etc).

      For example $doc.display('title') should display the document's title (as text or as text input for 'view', respectively 'inline' actions). I believe it should also override any object's 'title' property, because we can pass that object as a parameter to the display(fieldname, obj) if we want that specific property to be displayed.

      Please let me know if you find my suggestion useful or not.

      Attachments

        Activity

          People

            Unassigned Unassigned
            stefan.orzu Stefan Leon Orzu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: