« Back

Resources Importer section (new) in Liferay 6.1 Development Guide

Company Blogs March 20, 2013 By Jesse Rao

We've added a new section to the Liferay Development Guide covering the Resources Importer: https://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/6-1-importing-resources-with-themes. 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!

Threaded Replies Author Date
Thansk for your article! I found really... Denis Signoretto May 27, 2013 4:05 AM
I have some questions that I didn't found on... Riccardo Martini December 10, 2013 3:46 AM
Hi Riccardo, I don't think I understand your... Jesse Rao December 16, 2013 7:44 AM

Thansk for your article!

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

Regards,
Denis.
Posted on 5/27/13 4:05 AM.
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 ?

Thanks

Riccardo
Posted on 12/10/13 3:46 AM in reply to Denis Signoretto.
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: https://github.com/liferay/liferay-plugins/tree/master/themes/zoe-healthcare-the­me

This theme includes the following paths in its directory structure:
- zoe-healthcare-theme/docroot/WEB-INF/src/resources-importer/document_library/doc­uments
- zoe-healthcare-theme/docroot/WEB-INF/src/resources-importer/journal/articles
Posted on 12/16/13 7:44 AM in reply to Riccardo Martini.