0
我已经创建了视图,总之它显示最后5个新闻标题和图像 ,并把它们放在首页 ,但具体而言,我只想显示第一个节点的图像,其余的只是标题他们,那么正确的程序是什么。 是否有api这个模块的文档,所以我可以通过它的功能和属性,并打印我需要的东西。drupal 7查看模块问题
这里是创建视图汇总查询,但我认为这不会是我所需要的有用:
SELECT node.nid AS nid, node.title AS node_title, node.language AS node_language, 'node' AS field_data_field_img_node_entity_type FROM {node} node LEFT JOIN {taxonomy_index} taxonomy_index ON node.nid = taxonomy_index.nid LEFT JOIN {taxonomy_term_data} taxonomy_term_data ON taxonomy_index.tid = taxonomy_term_data.tid WHERE (((node.status = '1') AND (node.type IN ('news')) AND (taxonomy_term_data.name LIKE 'Lates News' ESCAPE '\\'))) LIMIT 5 OFFSET 0