Resources Importer section (new) in Liferay 6.1 Development Guide

We've added a new section to the Liferay Development Guide covering the Resources Importer: Liferay’s Resources Importer is a tool that allows a theme developer to have files and web content automatically imported into the portal when a theme is deployed. This is a great way for theme developers to provide a sample context that optimizes the design of their theme.

In this section, you can find out

  • what the Resources Importer does and why it's useful.
  • how to download and install the Resources Importer.
  • how to declare the resources importer as a dependency of your theme.
  • how to configure resources to be imported into a site template or directly into a site.
  • how to develop resources and add them to your theme.
  • how to declare the pages, layout templates, portlets and content that should appear in your theme's site or site template.
  • where to find examples of themes that show the resources importer in action.

If you're considering developing themes for Liferay Marketplace, make sure to check out this guide!

Thansk for your article!

I found really useful, I get in touch with these new funcionalites and with related documentation!

I have some questions that I didn't found on documentation.
- Is there a way to declare more sitemap.json for different sitemap that use same theme?
- D&M and CMS article folder are available ?


Hi Riccardo,

I don't think I understand your first question. If you're wondering if it's possible to have resources from a single theme imported into multiple sites or site templates via multiple sitemap.json files, then I think the answer is "no". At least, I haven't seen it done.

Regarding your second question, yes, Documents and Media and CMS articles (web content article) folders are available. See the zoe-healthcare-theme for an example:

This theme includes the following paths in its directory structure:
- zoe-healthcare-theme/docroot/WEB-INF/src/resources-importer/document_library/documents
- zoe-healthcare-theme/docroot/WEB-INF/src/resources-importer/journal/articles