留言板

Portlet creation steps

Askar Karasaev,修改在6 年前。

Portlet creation steps

New Member 帖子: 7 加入日期: 17-6-13 最近的帖子
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,修改在6 年前。

RE: Portlet creation steps

Junior Member 帖子: 62 加入日期: 11-2-15 最近的帖子
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,修改在6 年前。

RE: Portlet creation steps

Regular Member 帖子: 144 加入日期: 16-5-3 最近的帖子
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,修改在6 年前。

RE: Portlet creation steps

New Member 帖子: 7 加入日期: 17-6-13 最近的帖子
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,修改在6 年前。

RE: Portlet creation steps

Regular Member 帖子: 144 加入日期: 16-5-3 最近的帖子
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.