Foros de discusión

Portlet creation steps

Askar Karasaev, modificado hace 6 años.

Portlet creation steps

New Member Mensajes: 7 Fecha de incorporación: 13/06/17 Mensajes recientes
Hello!

I'm reading here at https://dev.liferay.com/ja/develop/tutorials/-/knowledge_base/7-0/liferay-as-a-development-platform, section "Example Liferay Projects". It's explaining but not showing the steps how to create portlets like Menu->New->... etc.
Or am I looking at wrong place?
Did some googling. There it showed to create Portlet by creating "Liferay Module Project"...

Looks like a portlet can be created with blade as well.

Please, clarify on this.

Thanks.
thumbnail
James Hinkey, modificado hace 6 años.

RE: Portlet creation steps

Junior Member Mensajes: 62 Fecha de incorporación: 15/02/11 Mensajes recientes
Hi Askar,

The tutorial after Liferay as a Development Platform shows you how to create a portlet using a module. Modules are the best way to create portlets on 7.0.

Our Tooling tutorials demonstrate using Liferay IDE, build tools, and Liferay Workspace (which can be used in Liferay IDE or from the command line).

Let me know if there's more you're looking for.

Thanks!
Jim
thumbnail
Joye Luo, modificado hace 6 años.

RE: Portlet creation steps

Regular Member Mensajes: 144 Fecha de incorporación: 3/05/16 Mensajes recientes
Hey Askar,

yeah, there are two ways to create a portlet.
1. use Liferay IDE
New->Liferay Module Project and choose mvc-portlet as the project template
There is the tutorial link: https://dev.liferay.com/zh/develop/tutorials/-/knowledge_base/7-0/creating-modules-with-liferay-ide
2. use blade cli
There is the command:
blade create -t mvc-portlet -p com.liferay.docs.guestbook -c GuestbookPortlet my-guestbook-project
Also tutorial link:
https://dev.liferay.com/zh/develop/tutorials/-/knowledge_base/7-0/creating-modules-with-blade-cli

Hope u have a good journey with Liferay IDE
Askar Karasaev, modificado hace 6 años.

RE: Portlet creation steps

New Member Mensajes: 7 Fecha de incorporación: 13/06/17 Mensajes recientes
Thank you for replies, James and Joye!

In Liferay Developer Studio I also see the option "Menu>New>Liferay Portlet". When is this one used?

Regards.
thumbnail
Joye Luo, modificado hace 6 años.

RE: Portlet creation steps

Regular Member Mensajes: 144 Fecha de incorporación: 3/05/16 Mensajes recientes
Hey Askar,

This one is used for Liferay SDK Plugin Project.
It use ant to manage the project dependencies.
Now, Liferay Module Project is strongly recommended.