CustomFieldsSearch の使い方

MT > CustomFieldsSearch
|

search

検索語

<input name="search" />

includeBlogs

検索対象にするブログ

<input type="hidden" name="IncludeBlogs" value="<$mt:BlogID$>" />

CustomFieldsSearch

カスタムフィールドによる検索を有効にします。


<input type="hidden" name="CustomFieldsSearch" value="1" />

CustomFieldsSearchClassType

検索対象を指定します。

有効な値

entry
「ブログ記事」の検索を行います。
page
「ウェブページ」の検索を行います。
<input type="hidden" name="CustomFieldsSearchClassType" value="entry" />

CustomFieldsSearchIgnore

カスタムフィールドでないカラムを無視する場合に指定します。(タグ名)

有効な値

EntryTitle
タイトル
EntryBody
本文
EntryMore
続き
EntryKeywords
キーワード
<input type="hidden" name="CustomFieldsSearchIgnore" value="EntryTitle" />
<input type="hidden" name="CustomFieldsSearchIgnore" value="EntryBody" />
<input type="hidden" name="CustomFieldsSearchIgnore" value="EntryMore" />
<input type="hidden" name="CustomFieldsSearchIgnore" value="EntryKeywords" />

CustomFieldsSearchField

検索のキーとするカラムを指定します。(タグ名)

CustomFieldsSearchIgnoreとCustomFieldsSearchFieldの両方に同じカラムを指定した場合は、CustomFieldsSearchFieldの設定が優先されます。

有効な値

EntryTitle
タイトル
EntryBody
本文
EntryMore
続き
EntryKeywords
キーワード
カスタムフィールドで追加したフィールドのタグ名
カスタムフィールドで追加したフィールド
<input type="checkbox" id="CustomFieldsSearchField_title" name="CustomFieldsSearchField" value="EntryTitle" /><label for="CustomFieldsSearchField_title">: タイトル</label>
<input type="checkbox" id="CustomFieldsSearchField_price" name="CustomFieldsSearchField" value="price" /><label for="CustomFieldsSearchField_price">: 価格</label>

CustomFieldsSearchFieldLike

CustomFieldsSearchFieldIn

CustomFieldsSearchFieldEquals

指定したキーと値で絞込みを行います(タグ名+条件)

<select name="CustomFieldsSearchFieldLike">
    <option value="">指定なし</option>
    <option value="book_pub:インプレスジャパン">インプレスジャパン</option>
    <option value="book_pub:ソフトバンククリエイティブ">ソフトバンククリエイティブ</option>
    <option value="book_pub:オライリージャパン">オライリージャパン</option>
</select>
<input type="checkbox" id="CustomFieldsSearchFieldIn_year_2004" name="CustomFieldsSearchFieldIn" value="year:2004" /><label for="CustomFieldsSearchFieldIn_year_2004">: 2004年</label>
<input type="checkbox" id="CustomFieldsSearchFieldIn_year_2008" name="CustomFieldsSearchFieldIn" value="year:2008" /><label for="CustomFieldsSearchFieldIn_year_2008">: 2008年</label>

CustomFieldsSearchLucky

I'm Feeling Lucky機能を提供します。(ヒットした一番最初のエントリーへ直接移動します。)

<input type="submit" name="CustomFieldsSearchLucky" value="I'm Feeling Lucky" />

CustomFieldsSearchLuckyArchiveType

I'm Feeling Lucky機能を利用した場合のアーカイブタイプを指定します。

有効な値

EntryPermalinkと同じ値が指定可能です。
<input type="hidden" name="CustomFieldsSearchLuckyArchiveType" value="Individual" />