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

Extend model service with methods for creating and resolving attachment references

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 2.5 M2
    • 2.5 M1, 2.4.2
    • {Unused} Core
    • None
    • Easy

    Description

      Adds methods to be able to:

      $services.model.createAttachmentReference("image.png", $doc.getDocumentReference())
      $services.model.resolveAttachment("image.png")
      $services.model.resolveAttachment("image.png", "current")
      $services.model.resolveAttachment("image.png", "explicit", $xwiki.getDocument("OtherSpace.OtherPage").getDocumentReference())
      

      Attachments

        1. XWIKI-5519.patch
          7 kB
          Marius Dumitru Florea

        Activity

          People

            mflorea Marius Dumitru Florea
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: