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: Implementing ADT in Custom Module-Liferay 7.2
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
Attachments:
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