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
Choose which module template before create a model listener
Hi,
I am using studio 3.7.1 and Lifeary 7.2.
I need to create a model listener and an indexer into DLFileEntry component. I understand that a model listener can be created into a module project. So I tried to create a module project first. But there are many module templates there and I do not know which template is best fit my need.
Can you tell me what module template should I choice when I create module project? Also, where can I find the documentation for those module templates, like whatkind of customization I can do for each of the module templates?
Thank you!
I am using studio 3.7.1 and Lifeary 7.2.
I need to create a model listener and an indexer into DLFileEntry component. I understand that a model listener can be created into a module project. So I tried to create a module project first. But there are many module templates there and I do not know which template is best fit my need.
Can you tell me what module template should I choice when I create module project? Also, where can I find the documentation for those module templates, like whatkind of customization I can do for each of the module templates?
Thank you!
Most of the templates are actually for the type of module to create (i.e. Service Builder module for SB, portlet mvc, yada yada yada). Most you may identify what they are for easily enough, and for those that you don't recognize we can help.
But there is not a template for every type of module that you might want to create.
In these cases, I will typically use the "api" module template because it has the least overhead (i.e. if you pick the SB template there's too much stuff to purge before you start going).
But there is not a template for every type of module that you might want to create.
In these cases, I will typically use the "api" module template because it has the least overhead (i.e. if you pick the SB template there's too much stuff to purge before you start going).
Hi David,
Thank you so much for your suggestion.
I will try to create an api module project for my model listeners.
Thank you so much for your suggestion.
I will try to create an api module project for my model listeners.