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

OfficeImporter should be using XWiki 2.0 syntax for presentation imports

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 1.8 M2
    • 1.8 M1
    • Office
    • None
    • officeimporter,presentations,xwiki2.0

    Description

      Currently office importer is generating following xwiki 1.0 code for presentation imports:

      #set ($url = $xwiki.zipexplorer.getFileLink($doc, "presentation.zip", "output.html"))
      <iframe src="$url" frameborder=0 width=800px height=600px></iframe>
      

      But this can be easily replaced with xwiki2.0 syntax using velocity macro and html macro as bellow:

      {{velocity}}
        #set ($url = $xwiki.zipexplorer.getFileLink($doc, "presentation.zip", "output.html"))
        {{html}}
          <iframe src="$url" frameborder=0 width=800px height=600px></iframe>
        {{/html}}
      {{/velocity}}
      

      Attachments

        Activity

          People

            asiri Asiri Rathnayake
            asiri Asiri Rathnayake
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: