<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="http://joetsuihk.com/en/taxonomy/term/37/all" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>search form</title>
    <link>http://joetsuihk.com/en/taxonomy/term/37/all</link>
    <description></description>
    <language>en</language>
     <atom:link href="http://joetsuihk.com/en/taxonomy/term/37/all/feed" rel="self" type="application/rss+xml" />
      <item>
    <title>Theming search form, 搜尋框的模版</title>
    <link>http://joetsuihk.com/en/node/110</link>
    <description>&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;p&gt;&lt;img src=&quot;http://www.joetsuihk.com/files/theming-search-form.gif&quot; /&gt;&lt;/p&gt;
&lt;p&gt;因為 drupal 原本內建的search form 搜尋框實在太單調的關係,&lt;br /&gt;
修改一下它的外觀, 模版...&lt;/p&gt;
&lt;p&gt;當然, 先打開 search module(今天的主角), devel module, theme developer(開發用主角)&lt;br /&gt;
將search block 放到 sidebar,&lt;br /&gt;
用 theme developer 指一下,&lt;br /&gt;
便知道 search module 已經內建了搜尋框的 template 以供使用, 修改&lt;br /&gt;
search-block-form.tpl.php 是在 block 之內的 template&lt;br /&gt;
search-theme-form.tpl.php 便是其他情況下使用的 template&lt;br /&gt;
可以直接到 [base_path]/module/search 之內&lt;br /&gt;
複製所需的template 到你的 theme 之內&lt;br /&gt;
清空你的 cache 緩存, 你的theme 便會自動使用這個你新增的 template 檔了&lt;/p&gt;
&lt;p&gt;其實一個搜尋框只有三種元素 (element)&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-taxonomy-vocabulary-2 field-type-taxonomy-term-reference field-label-above&quot;&gt;&lt;div class=&quot;field-label&quot;&gt;Free tags:&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/en/free_tags/theming&quot;&gt;theming&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/en/taxonomy/term/29&quot;&gt;Drupal6.x&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/en/taxonomy/term/37&quot;&gt;search form&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/en/taxonomy/term/38&quot;&gt;template&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-field-add-this field-type-addthis field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a class=&quot;addthis_button &quot; addthis:title=&quot;Theming search form, 搜尋框的模版 - JOE Tsui&amp;#039;s Drupal life in Hong Kong (香港)&quot; addthis:url=&quot;http://joetsuihk.com/en/node/110&quot;&gt;&lt;img src=&quot;http://s7.addthis.com/static/btn/sm-share-en.gif&quot; alt=&quot;Share page with AddThis&quot; /&gt;
&lt;/a&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
     <pubDate>Sun, 07 Sep 2008 09:12:05 +0000</pubDate>
 <dc:creator>JOE</dc:creator>
 <guid isPermaLink="false">110 at http://joetsuihk.com</guid>
  </item>
  </channel>
</rss>
