Fórum

Portlet creation steps

Askar Karasaev, modificado 6 Anos atrás.

Portlet creation steps

New Member Postagens: 7 Data de Entrada: 13/06/17 Postagens Recentes
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 6 Anos atrás.

RE: Portlet creation steps

Junior Member Postagens: 62 Data de Entrada: 15/02/11 Postagens Recentes
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 6 Anos atrás.

RE: Portlet creation steps

Regular Member Postagens: 144 Data de Entrada: 03/05/16 Postagens Recentes
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 6 Anos atrás.

RE: Portlet creation steps

New Member Postagens: 7 Data de Entrada: 13/06/17 Postagens Recentes
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 6 Anos atrás.

RE: Portlet creation steps

Regular Member Postagens: 144 Data de Entrada: 03/05/16 Postagens Recentes
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.