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

pdf.vm and content.vm templates are using Legacy OldCore API

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 7.1.2
    • Fix Version/s: 7.2-rc-1
    • Component/s: Annotations
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      It's used to deal with 1.0 documents footnotes.

      ## TODO: move that in a place common to old and new rendering footnotes
      #if ($doc.syntax.toIdString() == 'xwiki/1.0')
      $services.progress.startStep('Display the footnotes')
      #set($footnotes = "#putFootnotes()")
      $xwiki.renderText($footnotes, $doc)
      $services.progress.endStep()
      #end
      

      getRenderedContent should do the same thing from what I understand (execute some content in the context of the current document)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tmortagne Thomas Mortagne
                Reporter:
                tmortagne Thomas Mortagne
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: