Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Invalid
-
None
-
None
-
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
- is related to
-
VELOCITY-652 Macros encountered in templates are placed in global scope if no global library is specified and velocimacro.permissions.allow.inline.to.replace.global = false
- Closed