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

Allow scripts to easily know the reference of the document that contain them

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 8.1
    • Scripting
    • None
    • Unknown

    Description

      When writing a script, you sometimes want to refer the document containing that script, and this could be not the same as the current document (currently $doc).

      So it would be nice to have the same easy binding to this container document, and this would work for all kind of scripts, like JSX, SSX, macro, wiki components, etc...

      This would allow to write stuffs like:
      $xwiki.jsx.use($self)
      url($self.getAttachementURL('image.png'))
      $self.getObject($self.getDocumentReference())
      ...

      Attachments

        Activity

          People

            Unassigned Unassigned
            softec Denis Gervalle
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: