{"id":20779267,"url":"https://github.com/bolt/importwxr","last_synced_at":"2026-03-13T23:01:44.467Z","repository":{"id":19664181,"uuid":"22917477","full_name":"bolt/ImportWXR","owner":"bolt","description":"[Bolt Extension] An Import filter for WXR files, as created by Wordpress or PivotX","archived":false,"fork":false,"pushed_at":"2017-11-28T12:30:25.000Z","size":56,"stargazers_count":14,"open_issues_count":5,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-30T19:48:17.824Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bolt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-13T13:58:39.000Z","updated_at":"2021-09-03T12:33:44.000Z","dependencies_parsed_at":"2022-08-24T03:01:10.300Z","dependency_job_id":null,"html_url":"https://github.com/bolt/ImportWXR","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/bolt/ImportWXR","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolt%2FImportWXR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolt%2FImportWXR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolt%2FImportWXR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolt%2FImportWXR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bolt","download_url":"https://codeload.github.com/bolt/ImportWXR/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolt%2FImportWXR/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30478929,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T20:45:58.186Z","status":"ssl_error","status_checked_at":"2026-03-13T20:45:20.133Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T13:26:58.360Z","updated_at":"2026-03-13T23:01:44.427Z","avatar_url":"https://github.com/bolt.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"ImportWXR extension\n===================\n\nThis Bolt Extension is an Import filter for WXR / XML files, as created by\nWordpress or PivotX.\n\nHow to use this extension, in a few simple steps:\n\n 1. Acquire a `.wxr file`, and place it in the folder `app/config/extensions/importwxr`.\n 2. In the Bolt backend, go to 'Import WXR'.\n 3. Follow the steps on screen.\n 4. Tweak the configuration file, if needed. It can be found at\n    `app/config/extensions/importwxr.bolt.yml`, or using the 'Configure Extensions'\n    option in the backend of Bolt.\n 5. Repeat until satisfied with the results.\n\nNote: After importing, scroll down to check if the script completed. If\ncategories were found in the `.wxr`-file, the script will tell you which should\nbe added to your `taxonomy.yml`-file.\n\nIf you're importing a `.wxr` file that was generated by a recent version of\nWordpress, the 'mapping' as defined in the `importwxr.bolt.yml`configuration\nshould be good as-is. You might need to make a few modifications to your\n`contenttypes.yml`, to make sure all fields are present. See the example below,\nfor a working example.\n\nIf you already have set up your own contenttypes, just make sure of the following:\n\n - The fields `teaser` and `body` need to be present in your `pages` and\n   `entries` contenttypes.\n - Make sure the `taxonomy` is present, otherwise the extension will not import\n   your existing categories and tags.\n - Add the `attachments` contenttype, if you want to import the attachments from\n   Wordpress.\n\nNote: Subsequent runs of the extension will keep importing the found\nposts/entries again and again. If you're working on a fresh Bolt database, it's\nprobably good to set `post_id: id` in the mapping configuration. This will make\nthe importer use the original ID from the import file, and it will overwrite\nthem, preventing duplicates in the Bolt database.\n\n----\n\nExample of contenttypes.yml, if importing from Wordpress:\n\n```\npages:\n    name: Pages\n    singular_name: Page\n    fields:\n        title:\n            type: text\n            class: large\n            group: content\n        slug:\n            type: slug\n            uses: title\n        image:\n            type: image\n        teaser:\n            type: html\n            height: 150px\n        body:\n            type: html\n            height: 300px\n        template:\n            type: templateselect\n            filter: '*.twig'\n    taxonomy: [ categories, chapters ]\n    recordsperpage: 100\n\n\nentries:\n    name: Entries\n    singular_name: Entry\n    fields:\n        title:\n            type: text\n            class: large\n            group: content\n        slug:\n            type: slug\n            uses: title\n        teaser:\n            type: html\n            height: 150px\n        body:\n            type: html\n            height: 300px\n        image:\n            type: image\n            group: media\n        video:\n            type: video\n    taxonomy: [ categories, tags ]\n    recordsperpage: 10\n\nattachments:\n    name: Attachments\n    singular_name: Attachment\n    fields:\n        title:\n            type: text\n            class: large\n        slug:\n            type: slug\n            uses: title\n        image:\n            type: image\n        body:\n            type: html\n            height: 300px\n        url:\n            type: text\n            variant: inline\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbolt%2Fimportwxr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbolt%2Fimportwxr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbolt%2Fimportwxr/lists"}