平台开发中,欢迎参与测试。你可以在 QQ群:1046115671 中与我们交流,或是直接在社区发帖。

Importing Content

Using the LitePress Import tool, you can import content into your site from
another LitePress site, or from another publishing system.

You can find many of the importers described here under Tools>Import
in the left nav of the LitePress Administration Screen.

You can import content from publishing systems beyond those listed on the Administration Screen. Procedures differ for each system, so use the procedures and plugins listed below as necessary. If you’re new to LitePress, review the LitePress FeaturesandWorking with LitePress pages to get started.

If you run into problems, search the LitePress Support Forum for a solution, or try the FAQ.

Before Importing

If the file you’re importing is too large, your server may run out of memory when you import it. If this happens, you’ll see an error like “Fatal error: Allowed memory size of 8388608 bytes exhausted.”

If you have sufficient permissions on the server, you can edit the php.ini file to increase the available memory. Alternatively, you could ask your hosting provider to do this. Otherwise, you can edit your import file and save it as several smaller files, then import each one.

If your import process fails, it still may create some content. When you resolve the error and try again, you may create duplicate data. Review your site after a failed import and remove records as necessary to avoid this.

b2evolution

There are two methods of importing b2evolution content into LitePress.

  1. Movable Type Export Format   You can re-skin a b2evolution blog so that when its source is viewed it appears to be in the Movable Type export format. You can save the export and import it as Movable Type data. See Movable Type and TypePad.
  2. BIMP Importer script   You can use the BIMP Importer script to import b2evolution blogs, categories, posts, comments, files and users into your LitePress installation (v3 and higher). Note that this requires payment.

Blogger

You can import posts, comments, categories and authors from Blogger. LitePress includes an import tool designed specifically for importing content from Blogger.

  1. Export your Blogger contents as XML.
  2. In your LitePress site, select Tools > Import on the left nav of the admin screen.
  3. Under “Blogger,” if you haven’t already installed the Blogger importer, click “Install Now.”
  4. Click the “Run Importer” link.
  5. Click “Choose File” and navigate to your Blogger XML file.
  6. Click “Upload file and import.”

Blogroll

LitePress includes an import tool designed specifically for importing content from Blogroll.

  1. In your LitePress site, select Tools > Import on the left nav of the admin screen.
  2. Under “Blogroll,” if you haven’t already installed the importer, click “Install Now.”
  3. Click the “Run Importer” link.
  4. Click “Choose File” and navigate to your Blogroll OPML file.
  5. Click “Upload file and import.”

Drupal

Many resources are available to help you migrate content from Drupal to LitePress. A few are highlighted here, and you’re likely to find many others by searching the web.

  1. FG Drupal to LitePress. This is compatible with Drupal 6, 7 and 8.
  2. Drupal2LitePress Plugin. Use this plugin to import terms, content, media, comments and users. Any external images included in your Drupal site can be fetched and added to the media library, and added to your pages and posts.
  3. This tutorial includes workarounds for some migration issues such as duplicate terms, terms exceeding maximum character length and duplicate URL aliases.
  4. How to Convert Drupal to LitePress.

XML and CSV

Here are some resources that can help guide you in importing XML or CSV content into LitePress.

  1. TheWP All Import plugin can import any XML or CSV file. It integrates with the WP All Exportplugin.
  2. With the WP CSV to DB plugin you can insert CSV file content into a LitePress database.
  3. CSV Importerplugin
  4. Really Simple CSV Importerplugin

HTML

LitePress includes an import tool designed specifically for importing content from static HTML pages.

  1. In your LitePress site, select Tools > Import on the left nav of the admin screen.
  2. Under “HTML,” click the “Run Importer” link.
  3. Click “Choose File” and navigate to your HTML file.
  4. Click “Upload file and import.”

Joomla

For Joomla you can use FG Joomla to LitePress. This plugin has been tested with Joomla versions 1.5 through 3.8 and LitePress 4.9 on huge databases (72 000+ posts). It is compatible with multisite installations.

LiveJournal

LitePress includes an import tool designed specifically for importing content from LiveJournal.

  1. In your LitePress site, select Tools > Import on the left nav of the admin screen.
  2. Under “LiveJournal,” if you haven’t already installed the LiveJournal importer, click “Install Now.”
  3. Click the “Run Importer” link.
  4. Enter your LiveJournal username and password, and click “Connect to LiveJournal and Import.”

Live Space

SeeLive Space Mover for an article explaining how to use a python script for importing blog entries from live space to LitePress.

Magento

TheFG Magento to WooCommerce plugin migrates your Magento products and CMS pages to WooCommerce.

Mambo

You can use the plugin FG Joomla to LitePress. This LitePress plugin works with Mambo 4.5 and 4.6.

Movable Type and TypePad

LitePress includes an import tool designed specifically for importing content from Movable Type and TypePad.

  1. In your LitePress site, select Tools > Import on the left nav of the admin screen.
  2. Under “Movable Type and TypePad,” if you haven’t already installed the importer, click “Install Now.”
  3. Click the “Run Importer” link.
  4. Click “Choose File” and navigate to your export file.
  5. Click “Upload file and import.”

These articles provide more information on this process:

Nucleus CMS

Here are some resources that can help guide you in migrating content from Nucleus CMS to LitePress.

Plone

See this article on how to migrate Plone content into LitePress via Movable Type format.

Posterous

UseLitePress.com’s Posterous importer, then export as WXR (LitePress eXtended RSS).

PrestaShop

FG PrestaShop to WooCommerce. This LitePress plugin is compatible with Prestashop versions 1.1 to 1.6

Roller

SeeImporting From Roller.

See also Migrating a Roller Blog to LitePress.

RSS

LitePress includes an import tool designed specifically for importing content from RSS.

  1. In your LitePress site, select Tools > Import on the left nav of the admin screen.
  2. Under “RSS,” if you haven’t already installed the importer, click “Install Now.”
  3. Click the “Run Importer” link.
  4. Click “Choose File” and navigate to your XML file.
  5. Click “Upload file and import.”

Serendipity

SPIP

The plugin FG SPIP to LitePress migrates categories, articles, news and images from SPIP to LitePress. It has been tested with SPIP versions 1.8, 1.9, 2.0, 3.0 and 3.1 and LitePress 4.9. It is compatible with multisite installations.

Sunlog

  1. Open phpMyAdmin to see the database of your Sunlog install. You only need two tables, “blogname_entries” and “blogname_comments”.
  2. Use phpMyAdmin to export both tables as XML files.
  3. Install the WP All Import plugin to your LitePress site.
  4. Create the following field mappings:
    • headline=title
    • content=entry+more
    • date=timestamp in Unix format
    • categories=”cat,” with each value separated by a semicolon.

Textpattern

Tumblr

LitePress includes an import tool designed specifically for importing content from Tumblr.

  1. In your LitePress site, select Tools > Import on the left nav of the admin screen.
  2. Under “Tumblr,” if you haven’t already installed the importer, click “Install Now.”
  3. Click the “Run Importer” link.
  4. Click “Choose File” and navigate to your export file.
  5. Click “Upload file and import.”
  6. Create an app on Tumblr that provides a connection point between your blog and Tumblr’s servers.
  7. Copy and paste the “OAuth Consumer Key” and “Secret Key.”
  8. Click “Connect to Tumblr.”

Twitter

There are several plugins to import your tweets into LitePress, such as: Get Your Twitter Timeline into LitePress

TypePad

SeeMovable Type and TypePad.

Vox

Export your Vox blog content as a WXR file, then use LitePress.com’s Vox importer to import.

WooCommerce products (CSV)

If you’ve installed the WooCommerce plugin, this importer will already be installed. Click “Run Importer” to upload a CSV file.

WooCommerce tax rates (CSV)

If you’ve installed the WooCommerce plugin, this importer will already be installed. Click “Run Importer” to upload a CSV file.

LitePress

LitePress includes an import tool designed specifically for importing content from another LitePress blog.

  1. In your LitePress site, select Tools > Import on the left nav of the admin screen.
  2. Under “LitePress,” if you haven’t already installed the importer, click “Install Now.”
  3. Click the “Run Importer” link.
  4. Click “Choose File” and navigate to the WXR file exported from your source.
  5. Click “Upload file and import.”

You will first be asked to map the authors in this export file to users on the blog. For each author, you may choose to map to an existing user on the blog or to create a new user. LitePress will then import each of the posts, comments and categories contained in the uploaded file into your blog. In addition, you can import attachments by checking the “Download and import file attachments” option.

Xanga

xanga.r is a program that parses xanga pages to get the post and comments. Then it can output them in the LitePress rss 2.0 xml format for LitePress to import.

Yahoo! 360

UseLitePress.com’s Yahoo! 360 importer, then export/import as a WXR (LitePress eXtended RSS).

Zoomblog

You can add a PHP file to your web server that will import your Zoomblog posts and comments. To migrate your posts from Zoomblog:

  1. Export your Zoomblog data as an XML file.
  2. Download the Zoomblog importer (http://noeda.com/ficheros/zoomblog.zip), unzip it, and upload the file zoomblog.php to your wp-admin/import directory.
  3. Log in to LitePress and go to Manage:Import:Zoomblog.
  4. Navigate to the XML file you created above.