Wiki »
重写 com.liferay.portal.freemarker.FreeMarkerVariablesImpl 类。在它的 insertVariables 方法中添加如下代码:freeMarkerContext.put(变量名, 变量);