<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="http://joetsuihk.com/zh-hant/taxonomy/term/132/all" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>display</title>
    <link>http://joetsuihk.com/zh-hant/taxonomy/term/132/all</link>
    <description></description>
    <language>zh-hant</language>
     <atom:link href="http://joetsuihk.com/zh-hant/taxonomy/term/132/all/feed" rel="self" type="application/rss+xml" />
      <item>
    <title>自定Views 欄位輸出 Views fields display</title>
    <link>http://joetsuihk.com/zh-hant/%E8%87%AA%E5%AE%9Aviews_%E6%AC%84%E4%BD%8D%E8%BC%B8%E5%87%BA_views_fields_display</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;開發多了以後, 慢慢發展了一個自己比較喜歡的 views templating 方式, 分享一下&lt;/p&gt;
&lt;p&gt;1. Row style&lt;br /&gt;
絕大部份 &quot;Row style&quot; 都會使用 &quot;fields&quot;,&lt;br /&gt;
是為了靈活性, 可以在 &quot;Fields&quot; 取需要的欄位&lt;br /&gt;
相反 &quot;Row style&quot; &quot;node&quot; 只可以選擇 &quot;full node&quot; 或者 &quot;teaser&quot;&lt;br /&gt;
而且它的輸出就會使用 node.tpl.php&lt;br /&gt;
不方便, 我習慣自己建立 &quot;frontpage&quot; 資料夾專門用作放置該 views 的 template 的&lt;/p&gt;
&lt;p&gt;2. *.tpl.php 儲存結構&lt;br /&gt;
續上, 一個 views 在該 theme 之內都有一個資料夾&lt;br /&gt;
甚至是一個 display 一個, 例如 views &quot;frontpage&quot;:&lt;br /&gt;
--theme_joe (資料夾)&lt;br /&gt;
----frontpage (資料夾)&lt;br /&gt;
------views-view-fields--frontpage.tpl.php&lt;br /&gt;
----taxonomy (資料夾)&lt;br /&gt;
------views-view-fields--taxonomy.tpl.php&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/theming&quot;&gt;theming&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&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 even&quot;&gt;&lt;a href=&quot;/zh-hant/taxonomy/term/38&quot;&gt;template&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/zh-hant/free_tags/display&quot;&gt;display&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 fields display - JOE Tsui&amp;#039;s Drupal life in Hong Kong (香港)&quot; addthis:url=&quot;http://joetsuihk.com/zh-hant/%E8%87%AA%E5%AE%9Aviews_%E6%AC%84%E4%BD%8D%E8%BC%B8%E5%87%BA_views_fields_display&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, 30 Aug 2010 10:05:00 +0000</pubDate>
 <dc:creator>JOE</dc:creator>
 <guid isPermaLink="false">180 at http://joetsuihk.com</guid>
  </item>
  </channel>
</rss>
