Uploaded image for project: 'Velocity'
  1. Velocity
  2. VELOCITY-550

Velocimacros defined in a page are also access by other pages

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Invalid
    • None
    • None
    • Website
    • None

    Description

      Hi, I have this weird problem in my velocity pages. I have two different modules on my website, both have a macro (with the same name) defined. For example, I have a macro #settable on module 1 and another #settable on module 2. They have the same name but the content differs slightly from each other. My problem is that soemtimes module1 access the #settable2 or vice versa.

      It never crossed my mind that having the same name would be a problem since they are on different pages. I thought that macro definition should only be local and not global. I was only able to solve it by using this configuration

      velocimacro.permissions.allow.inline.local.scope = true

      However this may affect other pages, is there another way to address this problem?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              chonji Chon-Ji
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: