<?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 正體中文支援站 - 下拉式選單 - 回應</title>
 <link>http://drupaltaiwan.org/forum/20080723/2390</link>
 <description>Comments for &quot;下拉式選單&quot;</description>
 <language>zh-hant</language>
<item>
 <title>Re: 下拉式選單</title>
 <link>http://drupaltaiwan.org/forum/20080723/2390#comment-7334</link>
 <description>&lt;p&gt;其實就是放在 block 裡，要不要新增 region，則是看你所使用的版型、所要呈現的位置而定。&lt;/p&gt;
</description>
 <pubDate>Thu, 24 Jul 2008 14:30:06 +0800</pubDate>
 <dc:creator>charlesc</dc:creator>
 <guid isPermaLink="false">comment 7334 at http://drupaltaiwan.org</guid>
</item>
<item>
 <title>Re: </title>
 <link>http://drupaltaiwan.org/forum/20080723/2390#comment-7333</link>
 <description>&lt;p&gt;以下是6.x的方式，與5.x不一樣&lt;br /&gt;
參考資料： &lt;a href=&quot;http://drupal.org/node/171205&quot; title=&quot;http://drupal.org/node/171205&quot;&gt;http://drupal.org/node/171205&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;簡單說就是要改.info與page.tpl.php，以garland的garland.info來說，預設是內容是下&lt;/p&gt;
&lt;p&gt;; $Id: garland.info,v 1.5 2007/07/01 23:27:32 goba Exp $&lt;br /&gt;
name = Garland&lt;br /&gt;
description = Tableless, recolorable, multi-column, fluid width theme (default).&lt;br /&gt;
version = VERSION&lt;br /&gt;
core = 6.x&lt;br /&gt;
engine = phptemplate&lt;br /&gt;
stylesheets[all][] = style.css&lt;br /&gt;
stylesheets[print][] = print.css&lt;/p&gt;
&lt;p&gt;; Information added by drupal.org packaging script on 2008-07-09&lt;br /&gt;
version = &quot;6.3&quot;&lt;br /&gt;
project = &quot;drupal&quot;&lt;br /&gt;
datestamp = &quot;1215640509&quot;&lt;/p&gt;
&lt;p&gt;你會發現這個檔案並沒有定義regions，因為所有的regions都是預設的，如果要新增regions，就必須自己手寫預設再加上新增的，如：預設regions如下&lt;br /&gt;
regions[left] = Left sidebar&lt;br /&gt;
regions[right] = Right sidebar&lt;br /&gt;
regions[content] = Content&lt;br /&gt;
regions[header] = Header&lt;br /&gt;
regions[footer] = Footer&lt;/p&gt;
&lt;p&gt;然後我想加入自己的regions如下&lt;br /&gt;
regions[left] = Left sidebar&lt;br /&gt;
regions[right] = Right sidebar&lt;br /&gt;
regions[before_content] = Before content    -----&amp;gt;我新增的&lt;br /&gt;
regions[content] = Content&lt;br /&gt;
regions[header] = Header&lt;br /&gt;
regions[footer] = Footer&lt;/p&gt;
&lt;p&gt;最後修改page.tpl.php&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;print &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$content &lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt; &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;print &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$before_content &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;----&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;新增這一行，這樣我就可以把一個區塊放在內容之前&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;print &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$content&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;  &lt;/p&gt;
&lt;p&gt;看你下拉選單要放哪，也是這樣修改.info與page.tpl.php&lt;/p&gt;
</description>
 <pubDate>Thu, 24 Jul 2008 14:25:43 +0800</pubDate>
 <dc:creator>everfree</dc:creator>
 <guid isPermaLink="false">comment 7333 at http://drupaltaiwan.org</guid>
</item>
<item>
 <title>Re: 下拉式選單</title>
 <link>http://drupaltaiwan.org/forum/20080723/2390#comment-7331</link>
 <description>&lt;p&gt;喔喔～&lt;br /&gt;
了解了　感謝！&lt;br /&gt;
那手寫region是新增block嗎? 還是?&lt;/p&gt;
</description>
 <pubDate>Thu, 24 Jul 2008 09:14:44 +0800</pubDate>
 <dc:creator>zoe7633</dc:creator>
 <guid isPermaLink="false">comment 7331 at http://drupaltaiwan.org</guid>
</item>
<item>
 <title>Re: 下拉式選單</title>
 <link>http://drupaltaiwan.org/forum/20080723/2390#comment-7325</link>
 <description>&lt;p&gt;不能出現在header是正常的，除非佈景有這個region，不然的話就得自己手寫新增這個region了&lt;/p&gt;
</description>
 <pubDate>Wed, 23 Jul 2008 18:22:10 +0800</pubDate>
 <dc:creator>everfree</dc:creator>
 <guid isPermaLink="false">comment 7325 at http://drupaltaiwan.org</guid>
</item>
<item>
 <title>下拉式選單</title>
 <link>http://drupaltaiwan.org/forum/20080723/2390</link>
 <description>&lt;p&gt;請問可以直接在primary links設定下拉式選單嗎?&lt;br /&gt;
我用nice menu都用不太好(他不會在Header的部分顯示)&lt;/p&gt;
</description>
 <comments>http://drupaltaiwan.org/forum/20080723/2390#comments</comments>
 <category domain="http://drupaltaiwan.org/taxonomy/term/5">安裝、基本設定</category>
 <category domain="http://drupaltaiwan.org/taxonomy/term/802">thems</category>
 <category domain="http://drupaltaiwan.org/taxonomy/term/501">6.x</category>
 <pubDate>Wed, 23 Jul 2008 18:08:26 +0800</pubDate>
 <dc:creator>zoe7633</dc:creator>
 <guid isPermaLink="false">2390 at http://drupaltaiwan.org</guid>
</item>
</channel>
</rss>
