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

Add the ability to create an application in a nested space

    XMLWordPrintable

Details

    • Integration
    • Medium

    Description

      Currently, it creates one space per application. In the future, we might want to create an application in a subspace.

      Example of code that will cause a problem:

      #set($templateRef = $services.model.createDocumentReference($doc.wiki, $doc.space, "${className}Template"))
      

      (in https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-appwithinminutes/xwiki-platform-appwithinminutes-ui/src/main/resources/AppWithinMinutes/ClassEditSheet.xml#L225-225)

      must be replaced by:

       $services.model.resolveDocument("${className}Template")
      

      ie: the reference will be created in the current (sub) space.

      Attachments

        1. appLocationPicker.png
          104 kB
          Marius Dumitru Florea

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              gdelhumeau Guillaume Delhumeau
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 1 day, 2 hours
                  1d 2h