Foren

Liferay 7 : Including a JSP from FreeMarker template in Theme

thumbnail
Armaz Mellati, geändert vor 7 Jahren.

Liferay 7 : Including a JSP from FreeMarker template in Theme

Junior Member Beiträge: 96 Beitrittsdatum: 30.10.09 Neueste Beiträge
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.