PolyCMS Import, Export & Demo Data
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:
- In your WordPress admin panel, go to Tools > Export and download your
.xmlexport file. - In Perfex CRM, navigate to Blog > Tools > Import and select the WordPress WXR tab.
- Upload your
.xmlarchive 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:
- Click Export Data.
- 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.
- Download the
.jsonfile for archiving or cross-environment deployment.
JSON Import
Restore or transfer a JSON archive into another PolyCMS instance with automated slug collision resolution:
- Open Blog > Tools > Import and choose JSON Import.
- Upload your exported
.jsonfile and start the import. - 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 Name | Type | Responsibility |
|---|---|---|
polycms_tools_demo_data_providers | Filter | Registers a plugin provider card (slug, title, description, item counters, and capabilities) in the Demo Data UI |
polycms_demo_data_generate | Action | Runs full demo data generation when staff trigger Generate Demo Data for that provider |
polycms_demo_data_update | Action | Executes non-destructive refresh/upsert logic when staff click Update Demo Data without wiping production rows |
polycms_demo_data_clear | Action | Safely 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 Dataset | Quantity | Included Details |
|---|---|---|
| Studio Product Images | 40 images | Crisp white-background 800x800 studio images mapped across catalog products and variations |
| Product Categories | 6 categories | Apparel & POD, T-Shirts & Hoodies, Wall Art & Canvas, Consumer Electronics, Footwear & Lifestyle, and Digital & B2B Services |
| Global Filterable Attributes | 8 attributes | Reusable storefront attributes powering color swatches, pill selectors, and faceted sidebar filtering |
| Demo Products | 25 products | 13 Variable products, 4 Simple products, 5 Digital downloadable products, and 3 Service products (including 2 Quote-Only B2B items) |
| Unique-SKU Variants | 64 variants | Dedicated per-variant SKUs, pricing, stock levels, and variant imagery across the 13 variable products |
| Promo Coupons | 4 coupons | WELCOME10, SAVE25, FREESHIP, and BOGO21 covering percentage, fixed amount, shipping, and campaign rules |
| Demo Customers | 3 customers | Perfex CRM Client/Contact accounts ready for testing /my-account orders, downloads, and quotes |
| Multi-Status Test Orders | 6 orders | One 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
| Scenario | Recommended Tool |
|---|---|
| Migrate an existing WordPress blog | WordPress WXR XML Import |
| Move CMS content to another server | JSON Export -> JSON Import |
| Refresh demo items on an active site | Update Demo Data (non-destructive mode) |
| Launch a complete sample storefront | PolyStore Multi-Industry Demo Data Kit (1-click) |
| Full production disaster recovery | SQL Backup & Consistent MySQL Snapshot |
Related Documentation
- PolyStore Native E-Commerce Plugin - Complete guide to products, attributes, variations, and checkout flows.
- Dashboard & Store SQL Analytics - Explore analytics populated by the 6 seeded multi-status orders.
- Database Backup & Restore - SQL backup and full disaster recovery strategy.
- Hooks & Filters Reference - Developer documentation for demo provider hooks and plugin APIs.
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.