This website uses cookies to ensure you get the best experience. Learn More.
Resource Importer for Single Portal Instance
By Default in Liferay, Resource Importer will import journal articles,structures,templates,sites and document to all portal Instances present in the System
If we need to restrict Resource importer to one particular instance we can do it by following steps
STEP 1 : In your Theme Plugin go to docroot/WEB-INF/liferay-plugin-package.properties file and add the Portal Instance Web Id for which you want the Themes's Resource Importer to work
company-web-id=sample.com
STEP 2 : Download the Resource Importer Plugin from Github
https://github.com/liferay/liferay-plugins/tree/6.2.x/webs/resources-importer-web
STEP 3 : Go to /docroot/WEBINF/src/com/liferay/resourceimporter/messaging/ResourceImporterHotDeployMessageListener.java
Inside initialize(Message message) Method
Add the Highlighted code in initialize Method