見出し画像

PowerCMS X のバージョン 2 系と 3 系の違いは(ほぼ)プラグインだけ

あまり知られていませんが、2 系と3 系の違いは(ほぼ)プラグインだけです。

ファイル比較

2 系と3 系のアプリケーションパッケージをダウンロードして、ファイル差分を比較する diff コマンドを実行しました。
2系は「2.7610」、3系は「3.6100」が最新版ですので、その比較です。

diff -r 2.7610/ 3.6100/

結果は以下です。

diff -r 2.7610/powercmsx/class.Prototype.php 3.6100/powercmsx/class.Prototype.php
33,34c33,34
<     public    $app_version   = 2.7610;
<     public    $version       = 276100;
---
>     public    $app_version   = 3.6100;
>     public    $version       = 361000;
Only in 2.7610/powercmsx/lib: PhpOffice
Only in 2.7610/powercmsx/plugins/AuthTwilio: lib
Only in 3.6100/powercmsx: api
Only in 3.6100/powercmsx/docs: README-RESTfulAPI.md
Only in 3.6100/powercmsx/lib/PADO/models: api_cache.json
Only in 3.6100/powercmsx/lib/Prototype: RESTfulAPI
Only in 3.6100/powercmsx/lib/Prototype: class.PTRESTfulAPI.php
Only in 3.6100/powercmsx/plugins: AWS_CloudFront
Only in 3.6100/powercmsx/plugins: AWS_S3
Only in 3.6100/powercmsx/plugins: AssetScope
Only in 3.6100/powercmsx/plugins: AxeRunner
Only in 3.6100/powercmsx/plugins: BatchTriggerControl
Only in 3.6100/powercmsx/plugins: CSSPreprocessor
Only in 3.6100/powercmsx/plugins: ComponentBlocks
Only in 3.6100/powercmsx/plugins: EditorDiff
Only in 3.6100/powercmsx/plugins: ExportContents
Only in 3.6100/powercmsx/plugins: HTMLTidy
Only in 3.6100/powercmsx/plugins: HTTPAuth
Only in 3.6100/powercmsx/plugins: ImageInfo
Only in 3.6100/powercmsx/plugins: MachineTranslator
Only in 3.6100/powercmsx/plugins: QuickEdit
Only in 3.6100/powercmsx/plugins: Recaptcha
Only in 3.6100/powercmsx/plugins: TableOfContents
Only in 3.6100/powercmsx/plugins: TaxonomyUtils
Only in 3.6100/powercmsx/plugins: Text2OgImage
Only in 3.6100/powercmsx/plugins: Theme_GitHub
Only in 3.6100/powercmsx/plugins: URLRedirect
Only in 3.6100/powercmsx/plugins: UniqueURL
Only in 3.6100/powercmsx/plugins: VideoCaptions
Only in 3.6100/powercmsx/plugins: Watermark
Only in 3.6100/powercmsx/theme-static: common
Only in 3.6100/powercmsx/theme-static: media
Only in 3.6100/powercmsx/themes: media
Only in 3.6100/powercmsx/themes: skeleton

解説します。

diff -r 2.7610/powercmsx/class.Prototype.php 3.6100/powercmsx/class.Prototype.php
33,34c33,34
<     public    $app_version   = 2.7610;
<     public    $version       = 276100;
---
>     public    $app_version   = 3.6100;
>     public    $version       = 361000;

この出力はファイル class.Prototype.php の33行目と34行目に違いがあることを示しています。
「33,34c33,34」は「33行目と34行目」の内容が変わっていることを示しており、「c」は「change」を意味します。
差分の内容はバージョンの記述ですので、プログラム処理とは関係がないです。

Only in 2.7610/powercmsx/lib: PhpOffice
Only in 2.7610/powercmsx/plugins/AuthTwilio: lib

この出力は「Only in」となり、一方のフォルダにのみ存在するファイルまたはディレクトリです。この場合は「2.7610」のデータだけに存在するファイルで、3.6100 に存在しません。おそらく 3.6100 は不要になったと思いますが、理由は分かりません。

Only in 3.6100/powercmsx: api
Only in 3.6100/powercmsx/docs: README-RESTfulAPI.md
Only in 3.6100/powercmsx/lib/PADO/models: api_cache.json
Only in 3.6100/powercmsx/lib/Prototype: RESTfulAPI
Only in 3.6100/powercmsx/lib/Prototype: class.PTRESTfulAPI.php
Only in 3.6100/powercmsx/plugins: AWS_CloudFront
Only in 3.6100/powercmsx/plugins: AWS_S3
Only in 3.6100/powercmsx/plugins: AssetScope
Only in 3.6100/powercmsx/plugins: AxeRunner
Only in 3.6100/powercmsx/plugins: BatchTriggerControl
Only in 3.6100/powercmsx/plugins: CSSPreprocessor
Only in 3.6100/powercmsx/plugins: ComponentBlocks
Only in 3.6100/powercmsx/plugins: EditorDiff
Only in 3.6100/powercmsx/plugins: ExportContents
Only in 3.6100/powercmsx/plugins: HTMLTidy
Only in 3.6100/powercmsx/plugins: HTTPAuth
Only in 3.6100/powercmsx/plugins: ImageInfo
Only in 3.6100/powercmsx/plugins: MachineTranslator
Only in 3.6100/powercmsx/plugins: QuickEdit
Only in 3.6100/powercmsx/plugins: Recaptcha
Only in 3.6100/powercmsx/plugins: TableOfContents
Only in 3.6100/powercmsx/plugins: TaxonomyUtils
Only in 3.6100/powercmsx/plugins: Text2OgImage
Only in 3.6100/powercmsx/plugins: Theme_GitHub
Only in 3.6100/powercmsx/plugins: URLRedirect
Only in 3.6100/powercmsx/plugins: UniqueURL
Only in 3.6100/powercmsx/plugins: VideoCaptions
Only in 3.6100/powercmsx/plugins: Watermark
Only in 3.6100/powercmsx/theme-static: common
Only in 3.6100/powercmsx/theme-static: media
Only in 3.6100/powercmsx/themes: media
Only in 3.6100/powercmsx/themes: skeleton

「Only in 3.6100」ですので、「3.6100」のデータだけに存在するファイルです。ほとんどが 3 系で追加されたプラグインデータですね。

あとは「RESTfulAPI」が多く、これは ver 3 から API が利用できるようになったからです。

「theme」はテーマファイルになり、「media」「skeleton」が追加されたようです。「common」は「theme-static」なので修正が入ったのかな。

PowerCMS X ver 3.0 のリリースノート

以下のリンクから確認できます。

リリースノートに 3 系の新機能が書いてありますね。

JSON RESTful APIを追加しました。
新テーマ「Media」を追加しました。Bootstrapベースのシンプルな情報サイトテーマです。
新テーマ「Skeleton」を追加しました。ダイナミック・パブリッシング設定とトップページのみのミニマルなテーマです。

PowerCMS X ver.3.0リリースノート

結論

PowerCMS X 2 系をご利用の方は、同じ 2系の最新版にバージョンアップせずに 3系を利用しましょう。コアファイルは 2系も3系も同じです。
たくさんプラグインが入りますが、デフォルトは無効化の状態ですので、既存の動作に影響は無いはずです。テーマファイルも既存の動作に影響しません。

私の記事も 3系をベースに書いていますので、3系をおすすめします!

この記事が気に入ったらサポートをしてみませんか?