Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
a-blog cms zoom up 2021/03 WordPressサイトから a-blo...
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Tsutsui Shinobu
March 10, 2021
Business
270
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
280
a-blog cms zoom up 2020/08 Ver. 2.11.0でこっそり追加された スタンドアローン起動を使ってみる / a-blog cms standalone
shinobu
0
69
a-blog cms awards 2020 応募サイト「日報サイト」について / a-blog cms awards 2020 technology prize
shinobu
0
170
a-blog cms Training Camp 2019 Autumn 拡張アプリ『Form2Entry』を使って ユーザ参加型のコンテンツをつくる / a-blog cms Form2Entry
shinobu
0
180
Other Decks in Business
See All in Business
家族アルバム みてね 事業紹介 / Our Business
familyalbum
9
64k
ログラス会社紹介資料 / Loglass Company Deck
loglass2019
20
580k
キャンバスエッジ株式会社 会社説明資料
canvasedge
0
19k
50代で初転職した話
yda
15
23k
20260806financial-results-presentation
sios3744
0
170
202609_UPDATER_companysummary
updater_pr
0
170k
kintone-ai-first-steps.pdf
kintonepapers
0
130
フルカイテン株式会社 採用資料
fullkaiten
0
120k
Fullerene Company Deck
fullerene_inc
1
650
安定公務員みたいな学校から 毎年アップデートされる世界へ
maijun
1
1.1k
なんとかする力 〜 Android エンジニアからマネージャー、さらにその先へ? 〜
m_coder
2
490
会社説明資料_株式会社イー・コミュニケーションズ
ecoms_ikeda08
0
110
Featured
See All Featured
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.4k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.4k
30 Presentation Tips
portentint
PRO
1
400
Facilitating Awesome Meetings
lara
57
7.1k
Evolving SEO for Evolving Search Engines
ryanjones
0
300
Testing 201, or: Great Expectations
jmmastey
46
8.3k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.7k
Building an army of robots
kneath
307
46k
Mobile First: as difficult as doing things right
swwweet
225
10k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
580
Making the Leap to Tech Lead
cromwellryan
135
10k
Automating Front-end Workflow
addyosmani
1369
210k
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/ より
おしまい