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

We need a way to be able to override variables from xwikivars.vm / layoutvars.vm without overriding these templates

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.3 M1
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      It is a major pain to have to go through a custom skin to override variables from xwikivars.vm or layoutvars.vm, plus overriding those two templates means a merge need every time the wiki is upgraded.

      A first improvement could be to add a #template("extravars.vm") at the bottom of xwikivars or layoutvars, and to keep this template empty on purpose in the standard distribution. This would fix the upgrade issue.

      Next step could interface extensions; (or something like scripting extensions here, since we don't alter the rendered DOM, but just want to execute some velocity code at a certain point in the flow)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jerome Jerome Velociter
              Reporter:
              jerome Jerome Velociter
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: