In the following post we will see how to implement Application Display Template to a custom portlet. We are assuming that we have a custom portlet as created in previous post.
Following are steps that we need to follow -
1. Create StudentPortletDisplayTemplateHandler.java class. This class extends BasePortletDisplayTemplateHandler class provided by Liferay.
2. Declare StudentPortletDisplayTemplateHandler class in liferay-portlet.xml file.
3. Configure permissions to allow users to manage application display templates.
4. Use
5. Update the view jsp to render the data using selected ADT.
6. Create the template and test. Following Freemarker sample code snippet is from liferay documentation page.
Please share your feedback if any ....
No comments:
Post a Comment