<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="http://joetsuihk.com/en/taxonomy/term/121/all" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Node reference</title>
    <link>http://joetsuihk.com/en/taxonomy/term/121/all</link>
    <description></description>
    <language>en</language>
     <atom:link href="http://joetsuihk.com/en/taxonomy/term/121/all/feed" rel="self" type="application/rss+xml" />
      <item>
    <title>Node &quot;back&quot; referenc-ing 反向節點連結</title>
    <link>http://joetsuihk.com/en/node_quotbackquot_referencing_%E5%8F%8D%E5%90%91%E7%AF%80%E9%BB%9E%E9%80%A3%E7%B5%90</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/node reference view.png&quot; /&gt;&lt;br /&gt;
Node reference 是一種 cck 的欄位&lt;br /&gt;
用以放入另一個節點, 建立節點之間的關係&lt;br /&gt;
簡單的樹狀結構便可以使用 node reference 來建立主從關係&lt;/p&gt;
&lt;p&gt;但今次要討論的是 &quot;反向的 node reference&quot;&lt;br /&gt;
想像兩個 content type &quot;project&quot; 和 &quot;task&quot;&lt;br /&gt;
&quot;task&quot; 需要一個 node reference 欄位指定它的所屬 &quot;project&quot;&lt;br /&gt;
但 &quot;project&quot; 頁面便需要一個 list of tasks&lt;br /&gt;
而也不可能在 &quot;project&quot; 同樣建立 node reference 到 &quot;task&quot;&lt;br /&gt;
太費時了, 既是雙重輸入 (double entry), 又 &quot;project&quot; 可以有很多 &quot;task&quot;, 難以管理&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/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;/en/taxonomy/term/35&quot;&gt;cck&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/en/free_tags/argument&quot;&gt;argument&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/en/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;/en/free_tags/nodereference&quot;&gt;Node reference&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;Node &amp;amp;quot;back&amp;amp;quot; referenc-ing 反向節點連結 - JOE Tsui&amp;#039;s Drupal life in Hong Kong (香港)&quot; addthis:url=&quot;http://joetsuihk.com/en/node_quotbackquot_referencing_%E5%8F%8D%E5%90%91%E7%AF%80%E9%BB%9E%E9%80%A3%E7%B5%90&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, 19 Jul 2010 12:00:24 +0000</pubDate>
 <dc:creator>JOE</dc:creator>
 <guid isPermaLink="false">175 at http://joetsuihk.com</guid>
  </item>
  </channel>
</rss>
