2010-12-20 31 views

回答

0

這取決於哪些模塊你用的圖像連接到您的節點。

  • drupal存儲的關於文件的數據位於files表中。
  • 節點(內容)的數據位於node表中。
  • 連接的數據可能在幾個地方,如果您使用CCK這是最常用的東西,有一個函數會爲您生成,因爲它取決於設置數據的存儲方式:

    $field = content_fields('FIELD_NAME'); 
    $db_info = content_database_info($field); 
    

什麼,你需要將可能是其中的一些:

$db_info['columns']['nid']['column'] // the table for the nid, used to join node table 
$db_info['columns']['fid']['column'] // the table for the fid, used to join files table 
$db_info['table'] // The table the data is stored in 
+0

確定什麼是我可以使用「文件」和「節點」 怎麼知道之間加入域在「文件」中記錄X是重複的在「節點」中記錄「Y」 感謝您的幫助 – Alaa 2010-12-20 11:48:27

+0

@alaa沒有直接連接,您必須使用連接表。該表可以是任何取決於上面解釋的模塊使用和配置的東西。 – googletorp 2010-12-20 13:17:55

相關問題