camfindlay/silverstripe-wordpressimport
Composer 安装命令:
composer require camfindlay/silverstripe-wordpressimport
包简介
Imports Wordpress content from an exported XML file
README 文档
README
##Maintainer Contacts
- Cam Findlay (Nickname: camfindlay) <cam (at) silverstripe.com>
- Damian Mooyman (Nickname: tractorcow) <damian (dot) mooyman (at) gmail (dot) com>
##Requirements
- mod_rewrite (optional, if you need to cater for old incoming links and are using Apache)
- SilverStripe Framework & CMS 3.1.x
- silverstripe/blog 1.*
- silverstripe/comments
##Installation Instructions
composer require camfindlay/silverstripe-wordpressimport
This module currently it only works with silverstripe/blog 1.x.
WORKAROUND: If you have installed silverstripe 2.x, downgrade to 1.x:
composer require silverstripe/blog 1.x
After importing the wordpress .xml file you can safely upgrade to silverstripe/blog 2.x again:
composer require silverstripe/blog 2.x
NOTE: After upgrading from blog 1.x to 2.x don't forget to run dev/tasks/BlogMigrationTask as indicated in the silverstripe/blog documentation.
WARNING: downgrade was only tested on an empty blog, if you have already entered any content on your blog, this may have some unexpected results!
###Usage Overview It will change any links to uploaded images and files in your posts that follow the convention "http://yourdomain.com/wp-content/uploads/yyyy/mm/filesname.jpg" to "http://yourdomain.com/assets/Uploads/yyyy/mm/filesname.jpg" which allows you to migrate you uploaded images and files over to SilverStripe assets folder while maintaining images in your posts.
###Optional Rewriting Add this in your .htaccess file to port old wordpress posts in the form /yyyy/mm/name-of-post/ to new SilverStripe /blog/name-of-post convention.
RewriteRule ^[0-9]{4}/[0-9]{2}/(.*)$ /blog/$1 [R,L]
##Known issues:
- Content can lose a lot of the formatting coming from Wordpress.
- Perhaps parsing the content through a nl2br might help?
- Image captions need to be catered for and styled otherwise they end up looking like un-parse shortcodes.
- Currently only works with silverstripe/blog 1.x.
camfindlay/silverstripe-wordpressimport 适用场景与选型建议
camfindlay/silverstripe-wordpressimport 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 105 次下载、GitHub Stars 达 5, 最近一次更新时间为 2015 年 09 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「blog」 「wordpress」 「migration」 「silverstripe」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 camfindlay/silverstripe-wordpressimport 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 camfindlay/silverstripe-wordpressimport 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 camfindlay/silverstripe-wordpressimport 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Laravel package for opinionated blog implementation
Lets you add foreign keys in a swift! Foreign key adder in laravel migration.
Manage PostgreSQL schemas in Laravel applications
Import an RSS-feed into blog
Bitrix db migration core libs
Faker provider for NumberNine CMS
统计信息
- 总下载量: 105
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 16
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2015-09-16