<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="http://joetsuihk.com/zh-hant/taxonomy/term/170/all" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>exposed filter</title>
    <link>http://joetsuihk.com/zh-hant/taxonomy/term/170/all</link>
    <description></description>
    <language>zh-hant</language>
     <atom:link href="http://joetsuihk.com/zh-hant/taxonomy/term/170/all/feed" rel="self" type="application/rss+xml" />
      <item>
    <title>Views 過濾列表預設不返回結果  Views exposed filter default show zero result</title>
    <link>http://joetsuihk.com/zh-hant/views_%E9%81%8E%E6%BF%BE%E5%88%97%E8%A1%A8%E9%A0%90%E8%A8%AD%E4%B8%8D%E8%BF%94%E5%9B%9E%E7%B5%90%E6%9E%9C_views_exposed_filter_default_show_zero_result</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;/files/configure-views-exposed-filtering-shows-zero-result.png&quot; alt=&quot;Show No Results by Default&quot; /&gt;&lt;/p&gt;
&lt;p&gt;原理是使用 Global argument&lt;br /&gt;
如果 filter 的返回值都是預設值的話, 用 argument 返回 false,&lt;br /&gt;
再輸出 empty text 或者不輸出值&lt;/p&gt;
&lt;p&gt;arguments: Global Null&lt;br /&gt;
provide default argument&lt;br /&gt;
fixed entry&lt;br /&gt;
PHP Code:&lt;br /&gt;&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;/zh-hant/free_tags/development&quot;&gt;Development&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/zh-hant/free_tags/drupal&quot;&gt;Drupal&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/zh-hant/taxonomy/term/33&quot;&gt;views&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/zh-hant/free_tags/drupal6x&quot;&gt;Drupal 6.x&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/zh-hant/free_tags/exposedfilter&quot;&gt;exposed filter&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/zh-hant/free_tags/filter&quot;&gt;filter&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/zh-hant/free_tags/drupalplanet&quot;&gt;Drupal Planet&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;Views 過濾列表預設不返回結果  Views exposed filter default show zero result - JOE Tsui&amp;#039;s Drupal life in Hong Kong (香港)&quot; addthis:url=&quot;http://joetsuihk.com/zh-hant/views_%E9%81%8E%E6%BF%BE%E5%88%97%E8%A1%A8%E9%A0%90%E8%A8%AD%E4%B8%8D%E8%BF%94%E5%9B%9E%E7%B5%90%E6%9E%9C_views_exposed_filter_default_show_zero_result&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>Mon, 07 Mar 2011 13:45:40 +0000</pubDate>
 <dc:creator>JOE</dc:creator>
 <guid isPermaLink="false">214 at http://joetsuihk.com</guid>
  </item>
  </channel>
</rss>
