Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
a-blog cms zoom up 2021/03 WordPressサイトから a-blo...
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Tsutsui Shinobu
March 10, 2021
Business
250
0
Share
a-blog cms zoom up 2021/03 WordPressサイトから a-blog cmsへの移行案件で工夫したこと / Point of migrate WordPress to a-blog cms
a-blog cms zoom up 2021/03 での発表資料です。
Tsutsui Shinobu
March 10, 2021
More Decks by Tsutsui Shinobu
See All by Tsutsui Shinobu
a-blog cms zoom up 2020/11 上場企業にa-blog cmsを導入する際の提案書と仕様書のつくりかた / a-blog cms points of proposals
shinobu
0
260
a-blog cms zoom up 2020/08 Ver. 2.11.0でこっそり追加された スタンドアローン起動を使ってみる / a-blog cms standalone
shinobu
0
65
a-blog cms awards 2020 応募サイト「日報サイト」について / a-blog cms awards 2020 technology prize
shinobu
0
160
a-blog cms Training Camp 2019 Autumn 拡張アプリ『Form2Entry』を使って ユーザ参加型のコンテンツをつくる / a-blog cms Form2Entry
shinobu
0
160
Other Decks in Business
See All in Business
ログラス会社紹介資料 / Loglass Company Deck
loglass2019
15
520k
株式会社アシスト_会社紹介資料
ashisuto_career
3
160k
株式会社DFA Robotics - 会社説明資料
dfarobotics_inc
0
250
(10枚)お客様のニーズ把握から商品説明までの5ステップ (戦略的ヒアリング研修用)
nyattx
PRO
0
110
合同会社DMM.com ヘルスケア本部 採用ピッチ資料
dmm
0
200
(5枚)共感力をアップする秘訣とは? 情動的共感と認知的共感の違いについて
nyattx
PRO
0
110
株式会社SAFELY 会社紹介 / Company
safely_pr
1
6.2k
DNX Ventures Japan|Introduction Deck
natsumidnx
0
3.8k
Team Topologies as the 'infrastructure for agency' with humans and AI
matthewskelton
PRO
0
620
Value Book
kuradashi
1
1.3k
AI推進における「勝手に広がる仕組み」の」作り方
notty
11
4.9k
enechain company deck_english
enechain
PRO
1
350
Featured
See All Featured
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
92
Game over? The fight for quality and originality in the time of robots
wayneb77
1
150
YesSQL, Process and Tooling at Scale
rocio
174
15k
Practical Orchestrator
shlominoach
191
11k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
The Spectacular Lies of Maps
axbom
PRO
1
670
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.5k
New Earth Scene 8
popppiees
2
2k
Test your architecture with Archunit
thirion
1
2.2k
For a Future-Friendly Web
brad_frost
183
10k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
200
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
300
Transcript
a-blog cms zoom up 2021/03 WordPressサイトから a-blog cmsへの移⾏案件で⼯夫したこと 2021年3⽉9⽇ 筒井
志信
PHPに偏った内容も出てきますので、 肩の⼒を抜いてご視聴いただければ幸いです。 実⽤的要素 芸⼈的要素 13 本⽇お話する内容
「先頭に固定表⽰」 を実装
WordPressは任意の記事を先頭に表⽰できる
記事に固定表⽰⽤のカスタムフィールドを作成
記事に固定表⽰⽤のカスタムフィールドを作成
Entry_Summaryの表⽰設定の「ソートフィールド名」を設定 表⽰順を「フィールド(降順)」 ソートフィールド名を「entry_pickup」で設定
「先頭に固定表⽰」を実装 応⽤編
記事に優先表⽰⽤のカスタムフィールドを作成
記事に固定表⽰⽤のカスタムフィールドを作成
Entry_Summaryの表⽰設定の「ソートフィールド名」を設定 表⽰順を「数値フィールド(降順)」 ソートフィールド名を「entry_priority」で設定
アイキャッチ画像を インポートして表⽰
WordPressのエクスポート機能でエクスポート
a-blog cmsのインポート機能でインポート
a-blog cmsのインポート機能では アイキャッチ画像がインポートされない
アイキャッチ画像を表⽰ CSVインポート \正攻法なら/
WP All ExportなどでCSV形式でエクスポートする
WP All ExportなどでCSV形式でエクスポートする ただし、a-blog cms側のentry_idとの突き合わせや、 複数の画像が記載されているので調整が必要
アイキャッチ画像を表⽰ サムネイルIDを使⽤
インポート時にmeta_keyからアンダースコアを削除する post_metaの部分がカスタムフィールドとして登録される ただし、先頭にアンダースコアが ついているものは無視される
インポート時にmeta_keyからアンダースコアを削除する アイキャッチ画像のカスタムフィールドのキーから アンダースコアを外すことで カスタムフィールドとして登録する
通常のa-blog cmsの記事はサムネイルを表⽰する
アイキャッチ画像のIDがあればIDを表⽰する
アイキャッチ画像のURLはデータベースに格納されている
アイキャッチ画像のIDに対し、校正オプションを適⽤する
アイキャッチ画像のIDから画像のパスを取得する
a-blog cmsの記事のサムネイル表⽰ WordPressの記事のサムネイル表⽰
アイキャッチ画像を表⽰ 本⽂中のURLを使⽤
本⽂に画像を登録していたら表⽰する
本⽂中にsrc=“wp/wp-content/uploads/” があれば取得
本⽂を整形して表⽰
本⽂の微調整を校正オプションで対応
本⽂の微調整を校正オプションで対応(Movable Typeの場合)
インポートに 失敗したときは
管理画⾯がCSV-IMPORTで埋め尽くされる🥺
SQLコマンドで削除する (エントリーIDが14以降を削除する場合) DELETE FROM `acms_entry` WHERE `entry_id` >= 14; DELETE
FROM `acms_field` WHERE `field_eid` >= 14; DELETE FROM `acms_column` WHERE `column_eid` >= 14; DELETE FROM `acms_fulltext` WHERE `fulltext_eid` >= 14; UPDATE `acms_sequence` SET `sequence_entry_id` = 13; ⚠⾃⼰責任
WordPressで a-blog cmsの ように開発する おまけ
a-blog cmsのテンプレート継承機能は Laravelのbladeテンプレートに近い
a-blog cmsのテンプレート継承機能は LaravelのBladeテンプレートに近い
Bladeテンプレートをスタンドアローンで使⽤できる https://github.com/EFTEC/BladeOne
None
・@extends、@sectionの継承機能を使うことができる ・マスタッシュ構⽂で<?php ?>を書かなくても良い ・フィルタ(校正オプション)も使うことができる ・⾃動的にエスケープされるので⽐較的安全 WordPressへの抵抗感がなくなるためおすすめ☺
編集中であることを 表す表⽰は欲しい! https://usortblog.com/shounin-flow/ より
おしまい