Share

Anatomy of an Ext plugin

The following table represents a Anatomy of Ext.This is a simple structure and purpose of the each directory



Directory
Purpose
xxx-ext/docroot/WEB-INF
All the folders that make up the plugin are in the WEB-INF folder
ext-impl
It contains all source and configuration files except those related to the web application. When an Ext plugin is created, several important files are placed in subdirectories. The most significant are as follows:
  • /src/portal-ext.properties – Used to override the values of the properties in portal.properties
  • /src/system-ext.properties – Used to override the values of the properties in system.properties
  • /src/content/Language-ext.properties – Used to add your own internationalized text messages that ship with liferay portal
ext-lib
Contains any extra dependency libraries
ext-service
Contains the classes that are generated by Liferay’s service builder
ext-util-bridges
Corresponds to the util-bridges folder in the Liferay source
ext-util-java
Corresponds to the util-java folder in the Liferay source
ext-util-taglib
Corresponds to the util-taglib folder in the Liferay source
ext-web
Contains your JSPs, HTML, images JavaScript, and all other web application related files in the subdirectory
  • To add entries to the web application configuration file,edit/docroot/WEB-INF/web.xml
  • To add a portlet,edit /docroot/WEB-INF/portlet-ext.xml, /docroot/WEB-INF/liferay-portlet-ext.xml and docroot/WEB-INF/liferay-display.xml
  • Customizing some of Liferay’s internal StrutsPortlets, the following files will also be of interest to you: docroot/WEB-INF/struts-config.xml and docroot/WEB-INF/tiles-defs.xml

No comments:

Post a Comment