Message Boards

Implementing ADT in Custom Module-Liferay 7.2

Shruti Mishra, modified 2 Years ago.

Implementing ADT in Custom Module-Liferay 7.2

New Member Posts: 22 Join Date: 4/24/15 Recent Posts

Liferay-7.2.1 GA2
Hello,
1. Is it possible to add a custom widget template type ?  


If so, Can anyone Please suggest a reference.
2. I want to add ADT selection in my Custom Module, so that I can change Look and Feel without deployment.
After searching for a while, I found this link .
Here, they are using Site Map Template and using it. I do not want to use any of OOTB templates.
Suggestions to some Wiki/Doc please.

Thanks

thumbnail
Eduardo P. García, modified 2 Years ago.

RE: Implementing ADT in Custom Module-Liferay 7.2

Regular Member Posts: 157 Join Date: 3/16/12 Recent Posts

Hi Shruti,

1. Yes, it is possible. This tutorial explains how to create a custom widget template type. Basically, you need to implement your own PortletDisplayTemplateHandler. 

2. In the same tutorial, step 9. explains how to add ADT selection in your custom module. Notice the part about the liferay-ddm:template-selector taglib.

I hope this helps.

Regards