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

No way to access the document currently being exported from the pdf template

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      The pdf.vm and pdfhtmlheader.vm templates have a mechanism that allows to customize the export of the pdf using a "pdftemplate", explained more in detail in here http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HCustomizingthePDFexportLook26Feel .

      However, when overriding the header and the footer of the pdf export from such a template, there is no way to access the document currently being exported from velocity ($doc will be the template, $tdoc will be the template, etc). It used to be possible in 4.x versions using something like $cdoc but that has stopped working in recent versions.

      Attachments

        Activity

          People

            lucaa Anca Luca
            lucaa Anca Luca
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: