Congratulations! You’ve learned how to build a theme from start to finish. So what’s next? Now that you’ve created a theme, you can publish it to Liferay’s Marketplace for others to download. You can read about Marketplace and the requirements for publishing in our Publishing Your App guide.
Before you publish your theme to Marketplace make sure you update your
liferay-plugin-package.properties
file for the Resources Importer so it can
run properly in a production environment. Follow these steps to configure your
liferay-plugin-package.properties
file:
-
Open the
liferay-plugin-package.properties
file in theWEB-INF
folder of the theme and set the developer mode property tofalse
.resources-importer-developer-mode-enabled=false
The theme resources will overwrite the existing portal resources only on initial deployment now. Now that developer mode is disabled, you’ll need to remove one additional property.
-
Uncomment the
required-deployment-contexts
:required-deployment-contexts=\ resources-importer-web
-
Remove the following code from the file:
resources-importer-target-class-name=com.liferay.portal.model.Group
This ensures that the resources will be imported into the site template by default.
There you have it! As you can see, theme development is a multi-headed beast, but with careful planning and a thought out process you can tame it and develop a well designed theme.