Project Templates

Liferay provides project templates that you can use to generate starter projects formatted in an opinionated way. These templates can be used by most build tools (e.g., Gradle, Maven, Liferay IDE) to generate your desired project structure.

Some popular project templates include

  • API project
  • Fragment project
  • MVC Portlet project
  • Service Builder project
  • Template Context Contributor project
  • Theme project (WAR)
  • etc.

If you’re using Blade CLI, execute the following command to display a full list of project templates:

blade create -l

If you’re using Maven, you can view and use the project templates as Maven archetypes. Execute the following command to list them:

mvn archetype:generate -Dfilter=liferay

Archetypes with the com.liferay.project.templates prefix are the latest templates offered by Liferay.

If you’re using Liferay IDE, navigate to FileNewLiferay Module Project and view the project templates from the Project Template Name drop-down menu.

In this section of reference articles, each project template is outlined with the appropriate generation command and folder structure. Visit the project template article you’re most interested in to start building your own project!

Activator Template

In this article, you’ll learn how to create a Liferay activator as a Liferay module. To create a Liferay activator via the command line using Blade CLI or Maven, use one of the commands with the...

Read More

API Template

In this tutorial, you’ll learn how to create a Liferay API as a Liferay module. To create a Liferay API via the command line using Blade CLI or Maven, use one of the commands with the following...

Read More

Control Menu Entry Template

In this article, you’ll learn how to create a Liferay Control Menu entry as a Liferay module. To create a Liferay Control Menu entry via the command line using Blade CLI or Maven, use one of the...

Read More

Form Field Template

In this article, you’ll learn how to create a Liferay form field as a Liferay module. To create a Liferay form field via the command line using Blade CLI or Maven, use one of the commands with the...

Read More

Fragment Template

In this article, you’ll learn how to create a Liferay fragment as a Liferay module. You can learn more about fragment modules in the Declaring a Fragment Host article and in section 3.14 of the...

Read More

FreeMarker Portlet Template

In this article, you’ll learn how to create a Liferay FreeMarker portlet application as a Liferay module. To create a Liferay FreeMarker portlet application via the command line using Blade CLI or...

Read More

Layout Template

In this article, you’ll learn how to create a Liferay layout template as a WAR project. To create a Liferay layout template via the command line using Blade CLI or Maven, use one of the commands...

Read More

MVC Portlet Template

In this article, you’ll learn how to create a Liferay MVC portlet application as a Liferay module. To create a Liferay MVC portlet application via the command line using Blade CLI or Maven, use one...

Read More

Panel App Template

In this article, you’ll learn how to create a Liferay panel app and category as a Liferay module. To create a Liferay panel app and category via the command line using Blade CLI or Maven, use one...

Read More

Portlet Configuration Icon

In this article, you’ll learn how to create a Liferay portlet configuration icon as a Liferay module. To create a portlet configuration icon via the command line using Blade CLI or Maven, use one...

Read More

Portlet Template

In this article, you’ll learn how to create a Liferay portlet application as a Liferay module. To create a Liferay portlet application via the command line using Blade CLI or Maven, use one of the...

Read More

Portlet Provider Template

In this article, you’ll learn how to create a Liferay portlet provider as a Liferay module. To create a Liferay portlet provider via the command line using Blade CLI or Maven, use one of the...

Read More

Portlet Toolbar Contributor Template

In this article, you’ll learn how to create a Liferay portlet toolbar contributor as a Liferay module. To create a portlet toolbar contributor entry via the command line using Blade CLI or Maven,...

Read More

REST Template

In this article, you’ll learn how to create a Liferay RESTful web service packaged in a Liferay module. To create a Liferay RESTful web service via the command line using Blade CLI or Maven, use...

Read More

Service Template

In this article, you’ll learn how to create a Liferay service as a Liferay module. To create a Liferay service via the command line using Blade CLI or Maven, use one of the commands with the...

Read More

Service Builder Template

In this article, you’ll learn how to create a Liferay portlet application that uses Service Builder as Liferay modules. To create a Liferay Service Builder project via the command line using Blade...

Read More

Service Wrapper Template

In this article, you’ll learn how to create a Liferay service wrapper as a Liferay module. To create a Liferay service wrapper via the command line using Blade CLI or Maven, use one of the commands...

Read More

Simulation Panel Entry Template

In this article, you’ll learn how to create a Liferay simulation panel entry as a Liferay module. To create a simulation panel entry via the command line using Blade CLI or Maven, use one of the...

Read More

Soy Portlet Template

In this article, you’ll learn how to create a Soy portlet application as a Liferay module. To create a Soy portlet as a module via the command line using Blade CLI or Maven, use one of the commands...

Read More

Spring MVC Portlet Template

In this article, you’ll learn how to create a Liferay Spring MVC portlet application as a WAR. To create a Liferay Spring MVC portlet via the command line using Blade CLI or Maven, use one of the...

Read More

Template Context Contributor Template

In this article, you’ll learn how to create a Liferay template context contributor as a Liferay module. To create a template context contributor via the command line using Blade CLI or Maven, use...

Read More

Theme Template

In this article, you’ll learn how to create a Liferay theme as a WAR project. To create a Liferay theme via the command line using Blade CLI or Maven, use one of the commands with the following...

Read More

Theme Contributor Template

In this article, you’ll learn how to create a Liferay theme contributor as a Liferay module. To create a theme contributor via the command line using Blade CLI or Maven, use one of the commands...

Read More
0 (0 Votes)
Theme Builder Plugin Previous