O'Reilly logo

Liferay Portal Systems Development by Jonas X. Yuan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Basic MVC portlet

First of all, let's use the knowledge base admin portlet as an example that requires portlet development in the Plugins SDK. This section will use the knowledge base project, as mentioned in the previous section.

Project structure

As mentioned earlier, we will first create the folder, either by executing the Ant target or by manually using knowledge-base-portlet under the folder $PLUGINS-SDK-HOME/portlets. Under the folder, you will see the docroot folder and the build.xml file. For fast development, you can add the XML file knowledge-base-portlet.xml with the following lines.

<Context path="knowledge-base" docBase="$PLUGINS_SDK_HOME/portlets/knowledge-base-portlet/docroot"
/>

Under the folder docroot, you will see the subfolders ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required