I want to import an external resource from the filesystem to a Webcontent Template in Liferay (6.1). Can this be done with an include instruction (#include) from Freemarker or Velocity ?
Asked
Active
Viewed 1,101 times
1 Answers
0
By Velocity - No, the security rule allowed only import (include) templates from the Template-Root directory, see Velocity documentation: https://velocity.apache.org/engine/releases/velocity-1.5/user-guide.html#include
By Freemarker - Yes, see the docu: http://freemarker.org/docs/ref_directive_import.html

Mark
- 17,887
- 13
- 66
- 93