<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://drupaltaiwan.org" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Drupal Taiwan 正體中文支援站 - page - 回應</title>
 <link>http://drupaltaiwan.org/taxonomy/term/642</link>
 <description>Comments for &quot;page&quot;</description>
 <language>zh-hant</language>
<item>
 <title>Re: 如何用view在只在區塊秀標題,頁面除了秀標題和其他的欄位資訊?</title>
 <link>http://drupaltaiwan.org/forum/20080114/1814#comment-5547</link>
 <description>&lt;p&gt;太感謝了!!這兩種方法我會都試試!!&lt;/p&gt;
</description>
 <pubDate>Tue, 15 Jan 2008 10:44:52 +0800</pubDate>
 <dc:creator>ichien</dc:creator>
 <guid isPermaLink="false">comment 5547 at http://drupaltaiwan.org</guid>
</item>
<item>
 <title>Re: 如何用view在只在區塊秀標題,頁面除了秀標題和其他的欄位資訊?</title>
 <link>http://drupaltaiwan.org/forum/20080114/1814#comment-5546</link>
 <description>&lt;p&gt;我想比較簡單的做法應該是&lt;br /&gt;
分別作一個page view 和一個block view&lt;br /&gt;
然後製作一個針對該block的block.tpl&lt;br /&gt;
如果block view識別名稱是xxx&lt;br /&gt;
則該block的tpl檔名使用block-views-xxx.tpl.php&lt;br /&gt;
在tpl裡加入連到page view的連結&lt;/p&gt;
&lt;p&gt;如果是要用一個view同時提供page 和 block&lt;br /&gt;
在block的部分選擇使用list view&lt;br /&gt;
然後使用theme wizard&lt;br /&gt;
在select a view 選擇該view&lt;br /&gt;
select theme type 應該選 simple list 就可以&lt;br /&gt;
然後按下面的 select theme type 按鈕&lt;br /&gt;
theme wizard會產生三欄程式碼 每個欄的標題會說明程式碼要放在哪個檔案&lt;br /&gt;
template.php&lt;br /&gt;
views-list-xxx.tpl.php&lt;br /&gt;
views-list-xxx.css&lt;br /&gt;
三個都放到使用的版型資料夾裡&lt;br /&gt;
如果template.php已經有了 就把該段程式碼加進去 不用自己新增一個&lt;br /&gt;
然後在views-list-xxx.tpl.php裡會有在view的fields裡設定的所有欄位 以及該欄位自訂的label&lt;br /&gt;
把不要顯示的欄位那部分div整個刪除 只留下 print $title那一段的div (print $title_label 用不到的話可以刪)&lt;br /&gt;
這樣block顯示的時候就只會顯示標題了 而page還是會照fields裡設定的欄位顯示&lt;/p&gt;
&lt;p&gt;已上是我試過的兩種做法&lt;/p&gt;
</description>
 <pubDate>Tue, 15 Jan 2008 10:30:31 +0800</pubDate>
 <dc:creator>hom</dc:creator>
 <guid isPermaLink="false">comment 5546 at http://drupaltaiwan.org</guid>
</item>
</channel>
</rss>
