<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Technology on Information</title>
	<atom:link href="http://tec.toi-planning.net/en/mt/customfieldssearch/demo/feed" rel="self" type="application/rss+xml" />
	<link>http://tec.toi-planning.net/en</link>
	<description>ToI Planning’s technical article</description>
	<lastBuildDate>Sat, 27 Feb 2010 09:13:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Demonstration of CustomFieldsSearch</title>
		<link>http://tec.toi-planning.net/en/mt/customfieldssearch/demo</link>
		<comments>http://tec.toi-planning.net/en/mt/customfieldssearch/demo#comments</comments>
		<pubDate>Tue, 23 Sep 2008 14:07:51 +0000</pubDate>
		<dc:creator>taku</dc:creator>
				<category><![CDATA[CustomFieldsSearch]]></category>

		<guid isPermaLink="false">http://tec.toi-planning.net/en/uncategorized/customfieldssearch-%e3%81%ae%e3%83%87%e3%83%a2</guid>
		<description><![CDATA[

Field and the content

It is composed of the following fields.



name
content
tag
type


Title
Title of the book
MTEntryTitle
default


Description
Description
MTEntryBody
default


ISBN
ISBN
booken_isbn
text


Price
Price
booken_price
text


Publisher
Publisher
booken_pub
dropdown


Year
Published year
booken_year
dropdown




Registered entries and example of search form

The following entries are registered.


http://tec.toi-planning.net/mt42/customfieldssearch-demo-en/blog/



About of search form

When the text is input to &#8220;Free word&#8221;, matching against the column that checked in the check box.
It is possible to narrow it by specifying &#8220;Publisher&#8221;.
It is possible to [...]]]></description>
			<content:encoded><![CDATA[<div class="usage">
<div class="fields">
<h3>Field and the content</h3>
<p>
It is composed of the following fields.
</p>
<table class="fields">
<tr>
<th>name</th>
<th>content</th>
<th>tag</th>
<th>type</th>
</tr>
<tr>
<td>Title</td>
<td>Title of the book</td>
<td>MTEntryTitle</td>
<td>default</td>
</tr>
<tr>
<td>Description</td>
<td>Description</td>
<td>MTEntryBody</td>
<td>default</td>
</tr>
<tr>
<td>ISBN</td>
<td>ISBN</td>
<td>booken_isbn</td>
<td>text</td>
</tr>
<tr>
<td>Price</td>
<td>Price</td>
<td>booken_price</td>
<td>text</td>
</tr>
<tr>
<td>Publisher</td>
<td>Publisher</td>
<td>booken_pub</td>
<td>dropdown</td>
</tr>
<tr>
<td>Year</td>
<td>Published year</td>
<td>booken_year</td>
<td>dropdown</td>
</tr>
</table>
</div>
<div class="example">
<h3 class="entries">Registered entries and example of search form</h3>
<p>
The following entries are registered.
</p>
<ul>
<li><a href="http://tec.toi-planning.net/mt42/customfieldssearch-demo-en/blog/">http://tec.toi-planning.net/mt42/customfieldssearch-demo-en/blog/</a></li>
</ul>
</div>
<div class="form">
<h3>About of search form</h3>
<ul>
<li>When the text is input to &#8220;Free word&#8221;, matching against the column that checked in the check box.</li>
<li>It is possible to narrow it by specifying &#8220;Publisher&#8221;.</li>
<li>It is possible to narrow it by specifying &#8220;Published year&#8221;. This part specified the condition with &#8220;OR search&#8221;.</li>
<li>&#8220;Free word&#8221;, &#8220;Publisher&#8221;, and &#8220;Publication year&#8221; become the &#8220;AND search&#8221;.</li>
</ul>
</div>
<div class="form_sorce">
<h3>HTML Source of search form</h3>
<p><code>
<pre
>&lt;form method=&quot;get&quot; action=&quot;&lt;$mt:CGIPath$&gt;&lt;$mt:SearchScript$&gt;&quot;&gt;
  &lt;input type=&quot;hidden&quot; name=&quot;CustomFieldsSearch&quot; value=&quot;1&quot; /&gt;
  &lt;input type=&quot;hidden&quot; name=&quot;CustomFieldsSearchClassType&quot; value=&quot;entry&quot; /&gt;
  &lt;input type=&quot;hidden&quot; name=&quot;CustomFieldsSearchIgnore&quot; value=&quot;EntryTitle&quot; /&gt;
  &lt;input type=&quot;hidden&quot; name=&quot;CustomFieldsSearchIgnore&quot; value=&quot;EntryBody&quot; /&gt;
  &lt;input type=&quot;hidden&quot; name=&quot;CustomFieldsSearchIgnore&quot; value=&quot;EntryMore&quot; /&gt;
  &lt;input type=&quot;hidden&quot; name=&quot;CustomFieldsSearchIgnore&quot; value=&quot;EntryKeywords&quot; /&gt;
  &lt;input type=&quot;hidden&quot; name=&quot;IncludeBlogs&quot; value=&quot;&lt;$mt:BlogID$&gt;&quot; /&gt;

  &lt;fieldset id=&quot;freeword_set&quot;&gt;
    &lt;legend&gt;Free word&lt;/legend&gt;
    &lt;input type=&quot;text&quot; id=&quot;search_free&quot; class=&quot;ti&quot; name=&quot;search&quot; value=&quot;&lt;$mt:SearchString$&gt;&quot; /&gt;&lt;br /&gt;
    &lt;input type=&quot;checkbox&quot; id=&quot;CustomFieldsSearchField_title&quot; name=&quot;CustomFieldsSearchField&quot; value=&quot;EntryTitle&quot; /&gt;&lt;label for=&quot;CustomFieldsSearchField_title&quot;&gt;: Title&lt;/label&gt;
    &lt;input type=&quot;checkbox&quot; id=&quot;CustomFieldsSearchField_text&quot; name=&quot;CustomFieldsSearchField&quot; value=&quot;EntryBody&quot; /&gt;&lt;label for=&quot;CustomFieldsSearchField_text&quot;&gt;: Description&lt;/label&gt;
    &lt;input type=&quot;checkbox&quot; id=&quot;CustomFieldsSearchField_booken_isbn&quot; name=&quot;CustomFieldsSearchField&quot; value=&quot;booken_isbn&quot; /&gt;&lt;label for=&quot;CustomFieldsSearchField_booken_isbn&quot;&gt;: ISBN&lt;/label&gt;
    &lt;input type=&quot;checkbox&quot; id=&quot;CustomFieldsSearchField_booken_price&quot; name=&quot;CustomFieldsSearchField&quot; value=&quot;booken_price&quot; /&gt;&lt;label for=&quot;CustomFieldsSearchField_booken_price&quot;&gt;: Price&lt;/label&gt;
  &lt;/fieldset&gt;

  &lt;fieldset&gt;
    &lt;legend&gt;Publisher&lt;/legend&gt;
    &lt;select name=&quot;CustomFieldsSearchFieldLike&quot;&gt;
      &lt;option value=&quot;&quot;&gt;-- any publishers --&lt;/option&gt;
      &lt;option value=&quot;booken_pub:O'Reilly&quot;&gt;O'Reilly&lt;/option&gt;
      &lt;option value=&quot;booken_pub:Pragmatic Bookshelf&quot;&gt;Pragmatic Bookshelf&lt;/option&gt;
      &lt;option value=&quot;booken_pub:Wiley&quot;&gt;Wiley&lt;/option&gt;
      &lt;option value=&quot;booken_pub:Apress&quot;&gt;Apress&lt;/option&gt;
    &lt;/select&gt;
  &lt;/fieldset&gt;

  &lt;fieldset&gt;
    &lt;legend&gt;Year&lt;/legend&gt;
    &lt;input type=&quot;checkbox&quot; id=&quot;CustomFieldsSearchFieldIn_booken_year_2006&quot; name=&quot;CustomFieldsSearchFieldIn&quot; value=&quot;booken_year:2006&quot; /&gt;&lt;label for=&quot;CustomFieldsSearchFieldIn_booken_year_2006&quot;&gt;: 2006&lt;/label&gt;
    &lt;input type=&quot;checkbox&quot; id=&quot;CustomFieldsSearchFieldIn_booken_year_2007&quot; name=&quot;CustomFieldsSearchFieldIn&quot; value=&quot;booken_year:2007&quot; /&gt;&lt;label for=&quot;CustomFieldsSearchFieldIn_booken_year_2007&quot;&gt;: 2007&lt;/label&gt;
    &lt;input type=&quot;checkbox&quot; id=&quot;CustomFieldsSearchFieldIn_booken_year_2008&quot; name=&quot;CustomFieldsSearchFieldIn&quot; value=&quot;booken_year:2008&quot; /&gt;&lt;label for=&quot;CustomFieldsSearchFieldIn_booken_year_2008&quot;&gt;: 2008&lt;/label&gt;
  &lt;/fieldset&gt;

  &lt;input type=&quot;hidden&quot; name=&quot;limit&quot; value=&quot;2&quot; /&gt;
  &lt;input type=&quot;submit&quot; accesskey=&quot;4&quot; value=&quot;Search&quot; /&gt;

  &lt;input type=&quot;hidden&quot; name=&quot;CustomFieldsSearchLuckyArchiveType&quot; value=&quot;Individual&quot; /&gt;
  &lt;input type=&quot;submit&quot; name=&quot;CustomFieldsSearchLucky&quot; accesskey=&quot;5&quot; value=&quot;I'm Feeling Lucky&quot; /&gt;
&lt;/form&gt;
</pre>
<p></code>
</div>
<div class="example_1">
<h3>Searching for entries that &#8220;Programming&#8221; is included in &#8220;Title&#8221;.</h3>
<ul>
<li>
<a href="http://tec.toi-planning.net/mt42/mt-search.cgi?CustomFieldsSearch=1&#038;CustomFieldsSearchClassType=entry&#038;CustomFieldsSearchIgnore=EntryTitle&#038;CustomFieldsSearchIgnore=EntryBody&#038;CustomFieldsSearchIgnore=EntryMore&#038;CustomFieldsSearchIgnore=EntryKeywords&#038;IncludeBlogs=5&#038;search=Programming&#038;CustomFieldsSearchField=EntryTitle&#038;CustomFieldsSearchFieldLike=&#038;limit=2&#038;CustomFieldsSearchLuckyArchiveType=Individual">http://tec.toi-planning.net/mt42/mt-search.cgi?CustomFieldsSearch=1&#038;CustomFieldsSearchClassType=entry&#038;CustomFieldsSearchIgnore=EntryTitle&#038;CustomFieldsSearchIgnore=EntryBody&#038;CustomFieldsSearchIgnore=EntryMore&#038;CustomFieldsSearchIgnore=EntryKeywords&#038;IncludeBlogs=5&#038;search=Programming&#038;CustomFieldsSearchField=EntryTitle&#038;CustomFieldsSearchFieldLike=&#038;limit=2&#038;CustomFieldsSearchLuckyArchiveType=Individual</a>
</li>
</ul>
</div>
<div class="example_2">
<h3>Searching for entries that &#8220;Ruby&#8221; is included in &#8220;Title&#8221; OR &#8220;Description&#8221; AND Publisher is &#8220;O&#8217;Reilly&#8221; AND published in 2008.</h3>
</h3>
<ul>
<li>
<a href="http://tec.toi-planning.net/mt42/mt-search.cgi?CustomFieldsSearch=1&#038;CustomFieldsSearchClassType=entry&#038;CustomFieldsSearchIgnore=EntryTitle&#038;CustomFieldsSearchIgnore=EntryBody&#038;CustomFieldsSearchIgnore=EntryMore&#038;CustomFieldsSearchIgnore=EntryKeywords&#038;IncludeBlogs=5&#038;search=Ruby&#038;CustomFieldsSearchField=EntryTitle&#038;CustomFieldsSearchField=EntryBody&#038;CustomFieldsSearchFieldLike=booken_pub%3AO%27Reilly&#038;CustomFieldsSearchFieldIn=booken_year%3A2008&#038;limit=2&#038;CustomFieldsSearchLuckyArchiveType=Individual">http://tec.toi-planning.net/mt42/mt-search.cgi?CustomFieldsSearch=1&#038;CustomFieldsSearchClassType=entry&#038;CustomFieldsSearchIgnore=EntryTitle&#038;CustomFieldsSearchIgnore=EntryBody&#038;CustomFieldsSearchIgnore=EntryMore&#038;CustomFieldsSearchIgnore=EntryKeywords&#038;IncludeBlogs=5&#038;search=Ruby&#038;CustomFieldsSearchField=EntryTitle&#038;CustomFieldsSearchField=EntryBody&#038;CustomFieldsSearchFieldLike=booken_pub%3AO%27Reilly&#038;CustomFieldsSearchFieldIn=booken_year%3A2008&#038;limit=2&#038;CustomFieldsSearchLuckyArchiveType=Individual</a>
</li>
</ul>
</div>
<div class="example_3">
<h3>Searching for entries that &#8220;1590598504&#8243; is included in &#8220;ISBN&#8221;.</h3>
<ul>
<li>
<a href="http://tec.toi-planning.net/mt42/mt-search.cgi?CustomFieldsSearch=1&#038;CustomFieldsSearchClassType=entry&#038;CustomFieldsSearchIgnore=EntryTitle&#038;CustomFieldsSearchIgnore=EntryBody&#038;CustomFieldsSearchIgnore=EntryMore&#038;CustomFieldsSearchIgnore=EntryKeywords&#038;IncludeBlogs=5&#038;search=1590598504&#038;CustomFieldsSearchField=booken_isbn&#038;CustomFieldsSearchFieldLike=&#038;limit=2&#038;CustomFieldsSearchLuckyArchiveType=Individual">http://tec.toi-planning.net/mt42/mt-search.cgi?CustomFieldsSearch=1&#038;CustomFieldsSearchClassType=entry&#038;CustomFieldsSearchIgnore=EntryTitle&#038;CustomFieldsSearchIgnore=EntryBody&#038;CustomFieldsSearchIgnore=EntryMore&#038;CustomFieldsSearchIgnore=EntryKeywords&#038;IncludeBlogs=5&#038;search=1590598504&#038;CustomFieldsSearchField=booken_isbn&#038;CustomFieldsSearchFieldLike=&#038;limit=2&#038;CustomFieldsSearchLuckyArchiveType=Individual</a>
</li>
</ul>
</div>
<div class="output">
<h3>Example of using MTIfCustomFieldsSearchField in search result page</h3>
<p><code>
<pre
>
&lt;mt:IfCustomFieldsSearchField tag=&quot;booken_isbn&quot;&gt;
&lt;!-- When ISBN is only a search key, it is displayed. --&gt;
ISBN: &lt;MTbooken_isbn&gt;
&lt;/mt:IfCustomFieldsSearchField&gt;

&lt;mt:IfCustomFieldsSearchField tag=&quot;booken_price&quot;&gt;
&lt;!-- When Price is only a search key, it is displayed. --&gt;
Price: &lt;MTbooken_price&gt;
&lt;/mt:IfCustomFieldsSearchField&gt;
</pre>
<p></code>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://tec.toi-planning.net/en/mt/customfieldssearch/demo/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
