掲示板

Liferay 7 : Including a JSP from FreeMarker template in Theme

thumbnail
7年前 に Armaz Mellati によって更新されました。

Liferay 7 : Including a JSP from FreeMarker template in Theme

Junior Member 投稿: 96 参加年月日: 09/10/30 最新の投稿
Hi

I have some JSP pages in my custom theme, that I need to include from within a FreeMarker template.

In LF6.2, using vm as templates, I have done so like this :
$theme.include($themeServletContext, "/jsps/sign-out.jsp")

I have been unable to find how this can be done from a FreeMarker template.

I see something like this is done in Classic-theme this way :
<#assign dir_include = "/html" />
<#assign body_bottom_include = "${dir_include}/common/themes/body_bottom.jsp" />
<@liferay_util["include"] page=body_bottom_include />

But I can not see how I can refer to my JSP in my theme.

Hope someone can help.