Importing Resources using Liferay Theme

Nelson Rivera, modified 6 Years ago. New Member Posts: 12 Join Date: 8/27/19 Recent Posts
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:
{
  "layoutTemplateId": "1_column",
  "publicPages": [
    {
      "columns": [
          [
            "ross.xml"
          ]
      ],
      "friendlyURL": "/home",
      "name": "Welcome",
      "title": "Welcome"
    }
  ]
}
And this is my liferay-plugin-package.properties under WEB-INF
name=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 structure
Can someone tell me if i am doing something wrong or something is missing?
thumbnail
Mohammed Yasin, modified 6 Years ago. Liferay Master Posts: 593 Join Date: 8/8/14 Recent Posts
HI, Try adding  
resources-importer-target-value=Guest
  in your  liferay-plugin.-package.properties file and check
Nelson Rivera, modified 6 Years ago. New Member Posts: 12 Join Date: 8/27/19 Recent Posts
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."
Javier Lamadrid, modified 6 Years ago. New Member Posts: 15 Join Date: 4/8/19 Recent Posts
Nelson Rivera, modified 6 Years ago. New Member Posts: 12 Join Date: 8/27/19 Recent Posts
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
thumbnail
Mohammed Yasin, modified 6 Years ago. Liferay Master Posts: 593 Join Date: 8/8/14 Recent Posts
Hi,  Move the  news.xml from  news folder to structures folder ,  structures - > news- >news.xml  to structures->new.xml
Nelson Rivera, modified 6 Years ago. New Member Posts: 12 Join Date: 8/27/19 Recent Posts
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
thumbnail
Mohammed Yasin, modified 6 Years ago. Liferay Master Posts: 593 Join Date: 8/8/14 Recent Posts
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
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 .
Nelson Rivera, modified 6 Years ago. New Member Posts: 12 Join Date: 8/27/19 Recent Posts
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.
Vinod Luhar, modified 6 Years ago. New Member Post: 1 Join Date: 3/8/18 Recent Posts
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