Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-112

Position of the {{include}} after syntax convertion

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • 3.0
    • None
    • include macro velocity convert syntax
    • N/A
    • N/A

    Description

      The automatic convertion from xwiki/1.0 to xwiki/2.0 syntax can create a bug in the page if it uses an instruction #include. The include will be set inside the velocity code instead of outside. It can make the new page crash.

      From Thomas :

      • velocity is executed inside velocity macro
      • then the result of velocity execution is parser with wiki syntax parser

      include is wiki syntax so when it's executed you already did
      interpreted the velocity code that is supposed to use the variable
      coming from the macro page. When you put it outside of
      velocity macro it's executed before the velocity macro itself you
      your use case is working.

      Attachments

        Activity

          People

            vmassol Vincent Massol
            christophe.perinaud Christophe PĂ©rinaud
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: