2010-12-20 100 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

相关问题