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

Introduce Children and Siblings Panels in replacement of SpaceDocs Panel

Details

    • Unknown

    Description

      Attachments

        1. children.png
          children.png
          13 kB
        2. siblings.png
          siblings.png
          14 kB
        3. spacedocs-warning.png
          spacedocs-warning.png
          24 kB
        4. spacedocs.png
          spacedocs.png
          12 kB

        Issue Links

          Activity

            [XWIKI-12599] Introduce Children and Siblings Panels in replacement of SpaceDocs Panel
            vmassol Vincent Massol added a comment -

            See also XWIKI-13101

            vmassol Vincent Massol added a comment - See also XWIKI-13101
            vmassol Vincent Massol added a comment - See also http://markmail.org/message/bwzwsgwsdmjymmni
            vmassol Vincent Massol added a comment - - edited

            Time spent so far: 5h

            Still missing:

            • -documentation-
            • -proposal mail for deprecating SpaceDocs (+ Spaces) panels-
            • possibly unit or functional tests
            vmassol Vincent Massol added a comment - - edited Time spent so far: 5h Still missing: - documentation - - proposal mail for deprecating SpaceDocs (+ Spaces) panels - possibly unit or functional tests
            vmassol Vincent Massol added a comment - - edited

            Children Panel:

            {{velocity}}
            #panelheader($services.localization.render('panels.children.title'))
            ## Escape special characters in macro parameter values.
            #set ($openTo = $services.model.serialize($doc.documentReference, 'default').replaceAll('([~"])', '~$1'))
            {{documentTree showTranslations="false" showAttachments="false" compact="true" root="document:$openTo" /}}
            #panelfooter()
            {{/velocity}}
            

            Siblings Panel:

            {{velocity}}
            #panelheader($services.localization.render('panels.siblings.title'))
            ## Escape special characters in macro parameter values.
            #set ($homeName = $services.model.getEntityReference('DOCUMENT', 'default').name)
            #set ($spaceHome = $services.model.createEntityReference($homeName, 'DOCUMENT', $doc.documentReference.parent))
            #set ($openTo = $services.model.serialize($spaceHome, 'default').replaceAll('([~"])', '~$1'))
            {{documentTree showTranslations="false" showAttachments="false" compact="true" root="document:$openTo" /}}
            #panelfooter()
            {{/velocity}}
            
            vmassol Vincent Massol added a comment - - edited Children Panel: {{velocity}} #panelheader($services.localization.render( 'panels.children.title' )) ## Escape special characters in macro parameter values. #set ($openTo = $services.model.serialize($doc.documentReference, ' default ' ).replaceAll( '([~"])' , '~$1' )) {{documentTree showTranslations= " false " showAttachments= " false " compact= " true " root= "document:$openTo" /}} #panelfooter() {{/velocity}} Siblings Panel: {{velocity}} #panelheader($services.localization.render( 'panels.siblings.title' )) ## Escape special characters in macro parameter values. #set ($homeName = $services.model.getEntityReference( 'DOCUMENT' , ' default ' ).name) #set ($spaceHome = $services.model.createEntityReference($homeName, 'DOCUMENT' , $doc.documentReference.parent)) #set ($openTo = $services.model.serialize($spaceHome, ' default ' ).replaceAll( '([~"])' , '~$1' )) {{documentTree showTranslations= " false " showAttachments= " false " compact= " true " root= "document:$openTo" /}} #panelfooter() {{/velocity}}

            People

              vmassol Vincent Massol
              vmassol Vincent Massol
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 hours
                  5h