SlideShare a Scribd company logo
CustomFieldEx

カスタムフィールド・イーエックス




        solmake.jp
特徴その1
• カスタムフィールドに新たなタイプを追加
 – 整数・浮動少数
 – メールアドレス・電話番号
 – 拡張テキスト・拡張チェックボックスなど




            solmake.jp
特徴その2
• カスタムフィールドの入力チェック
 – 最大・最小値
 – 最大・最小文字数
 – 半角英数・ユニークチェックなど




            solmake.jp
特徴その3
• 特殊なUIの作成
 – フィールドの分割
 – チェックボックス+テキストなど




             solmake.jp
そもそもカスタムフィールドって?
• MTで管理されるオブジェクトに、独自の入力
  項目を追加する機能
   – ブログ記事・ウェブページ
   – カテゴリなど
• MovableType Proに標準で搭載
• http://www.movabletype.jp/documentation/mt5/custom-fields/




                               solmake.jp
例えば
ブログ記事作成画面




            solmake.jp
ブログ記事作成画面




           独自の項目を追加
        これがカスタムフィールドの機能




            solmake.jp
CustomFieldExでどんなことが?
• 入力チェックにより、決められた範囲内での
  入力内容に制限することが可能
• 例えば、レイアウト的に20文字以内にしたい
• 例えば、別なシステムと連動していて
 – 必ず数字を入れてほしい
 – 半角英数文字じゃないと困る
 – 他のデータと被っていてはマズイ
• なんて時に有効です
           solmake.jp
CustomFieldExをインストールすると
カスタムフィールド作成画面




                       種類のリストに
                       追加されます




          solmake.jp
CustomFieldExで追加される種類
•   整数
•   浮動少数
•   メールアドレス
•   電話番号
•   都道府県
•   拡張テキスト
•   拡張チェックボックス
•   拡張ラジオボタン
•   パスワード
                              詳細へ
                 solmake.jp
整数タイプ
• 入力値が整数であるかチェック
• オプションにより最大値・最小値チェック
 – 最大値:max-value=X
 – 最小値:min-value=X


• オプションの指定方法は?



                 solmake.jp
オプションの指定の仕方
カスタムフィールド編集画面



                    オプションにカンマ区切りで
                    min-value=1,max-value=5




            オプションの指定は任意
            全く指定しなくてもいいですし、必要なものだけ
            指定しても構いません



                solmake.jp
整数タイプでmin-value=1,max-value=5の場合




整数タイプの項目を追加した



                「5以下1以上」と制限が表示



                solmake.jp
整数以外だとエラー

                   整数以外で保存しようとすると
                     エラーではじかれる



「abc」と入力




           solmake.jp
範囲外だとエラー

                         5より大きいのでエラー

「6」と入力




            solmake.jp
浮動少数タイプ
• 入力値が浮動少数であるかチェック
• 整数タイプとの違いは、小数点が使えるかど
  うか
• オプション
 – 最大値:max-value
 – 最小値:min-value




                   solmake.jp
メールアドレスタイプ
• メールアドレスとして妥当であるかチェック
• オプション
 – 最大文字数:max-length
 – 最小文字数:min-length
 – ユニーク:unique
   • ユニークとは?
   • 他のデータで既に使用されていないかチェック




                solmake.jp
オプションuniqueを使うと

                           他のブログ記事で「ohmura@solmake.jp」が
                                使われているとエラー




「ohmura@solmake.jp」と入力




                         solmake.jp
電話番号タイプ
• 数字およびハイフンのみであるかチェック
• 電話番号に限らず、数字とハイフンのみ許可
  したい場合に
• オプション
 – 最大文字数:max-length
 – 最小文字数:min-length
 – ユニーク:unique


                solmake.jp
都道府県タイプ
• あらかじめ47都道府県がセットされたドロップ
  ダウン
• 機能は通常のドロップダウンタイプと同じ
• カスタムフィールドを作成する際に、自分で47
  都道府県を入力するのが面倒な場合に便利
                 ここに並べるのが地味に面倒




           solmake.jp
拡張テキストタイプ
• 様々な入力制限を設定できるテキストタイプ
• オプション
 –   最大文字数:max-length
 –   最小文字数:min-length
 –   半角数字のみ:numeric-only
 –   半角英字のみ:alphabet-only
 –   半角英数記号のみ:ascii-only
 –   ユニーク:unique
 –   フィールド分割:fields
     • フィールド分割って?

                    solmake.jp
フィールド分割

                              こんな形になる
fields=姓;名
「;」セミコロンで区切る




• 一つのフィールドを複数のテキストで入力させる機能
• 上の例は、「氏名」というフィールドを「姓」と「名」の2
  つのテキストボックスで入力させる例
• 入力された値はブランクで結合される
• 上の例は「山田 太郎」となる
                 solmake.jp
拡張チェックボックス
• チェックボックスの横にテキストボックスを付
  けることが可能




                       こんな感じ




          solmake.jp
チェックボックスにテキストを付けるには?

  カスタムフィールド編集画面




• 各項目を改行区切りで指定
• テキストボックスを付けたい項目の後ろに
  「::text」を追記する
                  solmake.jp
フィールドの値としては




• 上の例であれば「リンゴ, そのた: バナナ」にな
  ります



           solmake.jp
拡張ラジオボタン



• 拡張チェックボックス同様に、選択肢にテキス
  トボックスを付けることが可能
• 使い方は拡張チェックボックスと同様



          solmake.jp
まとめ
• カスタムフィールドの入力チェックを強化できます
• フィールドを分割したり、チェックボックスとテキスト
  を組合せたり、特殊なUIを作ることができます




            solmake.jp

More Related Content

Featured

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
Alireza Esmikhani
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Project for Public Spaces & National Center for Biking and Walking
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
DevGAMM Conference
 

Featured (20)

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 

Customfieldex