Plugin portlet project
Liferay plugins SDK provides a set of default templates such as EAR, Ext, hook, layout template, portlet, theme
, and so on. Using these templates, you can build your own plugin projects easily. This section is going to introduce the portlet project's default template.
Naming conventions and filter mappings
Liferay has standardized file naming conventions and filter mappings for plugins. The following are the standardized rules for naming conventions and filter mappings:
All stylesheet assets are placed in a
css
subfolder, including stylesheets written in JSP. The main stylesheet asset is namedmain.css
. When any stylesheet is written with thejsp
functionality, acss_init.jsp
is included in thedocroot
directory. If no stylesheets require thejsp
functionality, thencss_init.jsp
is not included.Portlets are wrapped with a CSS class that will be injected into the
DIV
that wraps the viewable content. This class name will be based on the name of the plugin package. For...