Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Importing Resources using Liferay Theme
I am trying to import some web contents into a new liferay instance using a liferay project theme, i am using liferay version 6.2. I created the theme project using maven and liferay-theme-archetype. I have all my web content articles, structure and templates under /my-theme-project/default-resources-theme/src/main/resources/resources-importer. I am able to package the war file, and deploy it into de liferay instance, the liferay log server show a successfully deployment and no error message, but no web content appear under Web Content Panel Control Option when i go to LIferay UI. Nothing happens and the required web contents does not appear.
This is my sitemap:
Can someone tell me if i am doing something wrong or something is missing?
This is my sitemap:
{
"layoutTemplateId": "1_column",
"publicPages": [
{
"columns": [
[
"ross.xml"
]
],
"friendlyURL": "/home",
"name": "Welcome",
"title": "Welcome"
}
]
}
And this is my liferay-plugin-package.properties under WEB-INFname=default-resources-theme
module-group-id=liferay
module-incremental-version=1
tags=
short-description=
change-log=
page-url=http://www.liferay.com
author=Liferay, Inc.
licenses=LGPL
liferay-versions=6.2.0+
required-deployment-contexts=\
resources-importer-web
resources-importer-developer-mode-enabled=true
resources-importer-target-class-name=com.liferay.portal.model.Group
And i have the attachmented project structureCan someone tell me if i am doing something wrong or something is missing?
HI, Try adding
resources-importer-target-value=Guest
in your liferay-plugin.-package.properties file and check
Hi mohammed thanks for you reply. I tried that but the web content still does not appears. Liferay instance imported the theme and public page, but not the web content and structures. And due to that now shows this message on the page "The selected web content no longer exists."
Hi,
Do you have the resources-importer installed? I imagine so but I had to ask
https://portal.liferay.dev/docs/6-2/tutorials/-/knowledge_base/t/creating-plugins-to-share-structures-templates-and-more
https://web.liferay.com/es/marketplace/-/mp/application/15502239
regards
Do you have the resources-importer installed? I imagine so but I had to ask

https://portal.liferay.dev/docs/6-2/tutorials/-/knowledge_base/t/creating-plugins-to-share-structures-templates-and-more
https://web.liferay.com/es/marketplace/-/mp/application/15502239
regards
Hi javier, yes i think that i have it installed. I have this app /liferay-portal-tomcat-6.2-ce-ga6-20160112152609836/liferay-portal-6.2-ce-ga6/tomcat-7.0.62/webapps/resources-importer-web
Hi, Move the news.xml from news folder to structures folder , structures - > news- >news.xml to structures->new.xml
Hi mohammed, you were right, i made the changes on the structure folder, and now the resources are imported under a Site Template. But now i am not able to create web content to this structure which is under the site template from my main page. I don't now how to apply those resources under de Site Template to all my site. i tried to set the added theme to my public and private pages, but the web content just are not able on my site, only i can see the web content on the Site template. How can i make avalible all web content from the added Site template to my site? Regards
Hi, You have created these web content in site template or site ? In case you wanted to be going directly put the resource in site you can set
In case you want the site template to assign to particular site, then that site need to be created with that site template .
resources-importer-target-value=[your site name] |
resources-importer-target-class-name=com.liferay.portal.model.Group |
In case you want the site template to assign to particular site, then that site need to be created with that site template .
hi thanks for your soon reply. i understood you explication. I guess that i am creating the web content to a site template, because i am using the default setting on the liferay-plugin-package.properties, i deleted all resources-importer-target.* properties.
HI,
For getting structure, templates and Web content in the Sitemap use default setting.https://portal.liferay.dev/docs/6-2/tutorials/-/knowledge_base/t/importing-resources-with-your-themes
If you’d like to import your theme’s resources directly into a site, instead of into a site template, you can specify the following in your liferay-plugin-package.properties file:resources-importer-target-class-name=com.liferay.portal.model.Groupresources-importer-target-value=[site-name]
You can go through a beginner theme named "Welcome -theme" as below:
https://github.com/liferay/liferay-plugins/tree/6.2.x/themes/welcome-theme
After clearing the beginner theme (welcome-theme), You can go through Advanced example of theme as below.https://github.com/liferay/liferay-plugins/tree/6.2.x/portlets/test-resources-importer-portlet
Note:
You can do step by step using the below links:https://portal.liferay.dev/docs/6-2/tutorials/-/knowledge_base/t/importing-resources-with-your-themes
For getting structure, templates and Web content in the Sitemap use default setting.https://portal.liferay.dev/docs/6-2/tutorials/-/knowledge_base/t/importing-resources-with-your-themes
If you’d like to import your theme’s resources directly into a site, instead of into a site template, you can specify the following in your liferay-plugin-package.properties file:resources-importer-target-class-name=com.liferay.portal.model.Groupresources-importer-target-value=[site-name]
You can go through a beginner theme named "Welcome -theme" as below:
https://github.com/liferay/liferay-plugins/tree/6.2.x/themes/welcome-theme
After clearing the beginner theme (welcome-theme), You can go through Advanced example of theme as below.https://github.com/liferay/liferay-plugins/tree/6.2.x/portlets/test-resources-importer-portlet
Note:
You can do step by step using the below links:https://portal.liferay.dev/docs/6-2/tutorials/-/knowledge_base/t/importing-resources-with-your-themes
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™