Back to Main Site

PolyCMS Import, Export & Demo Data

Last updated on Nov 23, 2026 7:47 AM 7:47 AM 5,897.08 ms

PolyCMS v1.4.0 provides a complete migration and seeding suite under Blog > Tools, combining a native WordPress WXR XML Importer, portable JSON Export/Import, a Non-Destructive Update Demo Data Mode, an extensible Demo Data Provider Hook Architecture, and the 1-click PolyStore Multi-Industry Demo Data Kit (25 products, 64 SKU variants, 40 studio images, 4 coupons, and 6 multi-status orders).

WordPress WXR XML Import

Migrating an existing blog from WordPress into Perfex CRM? Use the built-in WordPress WXR (WordPress eXtended RSS) XML Importer:

  1. In your WordPress admin panel, go to Tools > Export and download your .xml export file.
  2. In Perfex CRM, navigate to Blog > Tools > Import and select the WordPress WXR tab.
  3. Upload your .xml archive and click Start Import.

PolyCMS parses the WXR XML stream and imports:

  • Blog posts with formatted HTML content, excerpts, and publish dates
  • Static pages preserving parent-child hierarchy
  • Categories and tags taxonomies
  • Featured images and embedded media attachments
  • Threaded comments with author metadata and moderation statuses
  • Author mapping onto existing Perfex CRM staff accounts

JSON Export & Import

JSON Export

Export core CMS content into a lightweight structured JSON archive under Blog > Tools > Export:

  1. Click Export Data.
  2. PolyCMS packages all posts (with content, SEO metadata, and taxonomy links), pages with hierarchy, categories, tags, menus with item ordering, widget configurations, and plugin/theme settings.
  3. Download the .json file for archiving or cross-environment deployment.

JSON Import

Restore or transfer a JSON archive into another PolyCMS instance with automated slug collision resolution:

  1. Open Blog > Tools > Import and choose JSON Import.
  2. Upload your exported .json file and start the import.
  3. PolyCMS reconstructs posts, pages, menus, widgets, and taxonomy relationships automatically.

Demo Data Generator & Non-Destructive Update Mode (v1.4.0)

Under Blog > Tools > Demo Data, PolyCMS v1.4.0 offers three distinct lifecycle controls for staging, client demos, and theme validation:

  • Generate Demo Data - Performs a clean initial seed of sample blog posts, pages, categories, tags, navigation menus, and any selected plugin demo providers (such as PolyStore).
  • Update Demo Data (Non-Destructive Mode) - Available at Blog > Tools > Demo Data > Update Demo Data, this idempotent mode refreshes demo templates, adds newly introduced demo items, and repairs missing sample assets without truncating or overwriting your existing production posts, pages, or orders.
  • Clear Demo Data - Safely removes demo-flagged sample entries while keeping real production content untouched.

Extensible Demo Data Provider Architecture

Starting in PolyCMS v1.4.0, third-party and bundled plugins register their own 1-click demo kits directly into Blog > Tools > Demo Data using four standardized hooks:

Hook NameTypeResponsibility
polycms_tools_demo_data_providersFilterRegisters a plugin provider card (slug, title, description, item counters, and capabilities) in the Demo Data UI
polycms_demo_data_generateActionRuns full demo data generation when staff trigger Generate Demo Data for that provider
polycms_demo_data_updateActionExecutes non-destructive refresh/upsert logic when staff click Update Demo Data without wiping production rows
polycms_demo_data_clearActionSafely purges demo-created records when staff run Clear Demo Data

Example registration inside a custom PolyCMS plugin:

polycms_add_filter('polycms_tools_demo_data_providers', function ($providers) {
    $providers['my_plugin'] = [
        'name'        => 'My Plugin Demo Kit',
        'description' => 'Seeds sample templates and test records.',
    ];
    return $providers;
});

polycms_add_action('polycms_demo_data_generate', function ($provider) {
    if ($provider === 'my_plugin') {
        // Seed initial demo dataset
    }
});

polycms_add_action('polycms_demo_data_update', function ($provider) {
    if ($provider === 'my_plugin') {
        // Idempotently update demo records without truncating live data
    }
});

polycms_add_action('polycms_demo_data_clear', function ($provider) {
    if ($provider === 'my_plugin') {
        // Clean up demo-flagged records safely
    }
});

PolyStore Multi-Industry Demo Data Kit

When PolyStore is active, it registers a production-grade PolyStore Multi-Industry Demo Data Kit via the provider architecture above. One click under Blog > Tools > Demo Data populates an entire cross-industry storefront so you can test faceted filtering, multi-attribute swatch selection, checkout, B2B quotes, order tracking, and SQL analytics immediately:

Seeded DatasetQuantityIncluded Details
Studio Product Images40 imagesCrisp white-background 800x800 studio images mapped across catalog products and variations
Product Categories6 categoriesApparel & POD, T-Shirts & Hoodies, Wall Art & Canvas, Consumer Electronics, Footwear & Lifestyle, and Digital & B2B Services
Global Filterable Attributes8 attributesReusable storefront attributes powering color swatches, pill selectors, and faceted sidebar filtering
Demo Products25 products13 Variable products, 4 Simple products, 5 Digital downloadable products, and 3 Service products (including 2 Quote-Only B2B items)
Unique-SKU Variants64 variantsDedicated per-variant SKUs, pricing, stock levels, and variant imagery across the 13 variable products
Promo Coupons4 couponsWELCOME10, SAVE25, FREESHIP, and BOGO21 covering percentage, fixed amount, shipping, and campaign rules
Demo Customers3 customersPerfex CRM Client/Contact accounts ready for testing /my-account orders, downloads, and quotes
Multi-Status Test Orders6 ordersOne order per core workflow state: Completed, Shipped, Processing, Pending Guest, B2B Quote, and Cancelled

Because the 6 seeded test orders span every fulfillment and billing state, you can immediately validate Store > Orders, the Store SQL Analytics Dashboard (including streaming CSV export), and public tracking on /track-order.

Migration & Testing Use Cases

ScenarioRecommended Tool
Migrate an existing WordPress blogWordPress WXR XML Import
Move CMS content to another serverJSON Export -> JSON Import
Refresh demo items on an active siteUpdate Demo Data (non-destructive mode)
Launch a complete sample storefrontPolyStore Multi-Industry Demo Data Kit (1-click)
Full production disaster recoverySQL Backup & Consistent MySQL Snapshot

Related Documentation

Launch Your CMS for Perfex CRM — Lifetime Access for Just $19
Create blogs, pages, themes, plugins, and manage everything from one powerful unified admin panel.

Early Adopter Advantage

Current pricing reflects the module’s present feature set. As additional plugins, themes, multilingual capabilities, builders (MTBuilder), and ecosystem integrations are released, pricing may be adjusted. Early customers secure today’s price while benefiting from future updates.