Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: init.ftl not resolving in Liferay 7.2 ftl theme
Hi All,The init.ftl is resolving in the liferay 7.2 ftl theme.Getting below error:Template inclusion failed (for parameter value "/hello-theme_SERVLET_CONTEXT_/templates/init.ftl"):_Unable to find FreeMarker template with ID hello-theme_SERVLET_CONTEXT_/templates/init.ftl__----_FTL stack trace ("~" means nesting-related):_ - Failed at: #include init [in template "hello-theme_SERVLET_CONTEXT_/templates/portal_normal.ftl" at line 2, column 1]
Could you check if it is in the theme.war? I mean, there should be a templates folder inside containing the init.ftl file. If it isn't there, you have some kind of build problem. If it is there, it has to be some problem in Liferay.
We added init.ftl in templates folder to resolve this
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™