【发布时间】:2011-03-28 08:57:20
【问题描述】:
我已经创建了视图,简而言之,它显示最后 5 个新闻标题和图像 并将它们放在首页 但具体来说,我只想显示第一个节点的图像,其余的只是标题,那么正确的程序是什么。 是否有此模块的 api 文档,以便我可以查看其功能和属性并打印我需要的内容。
这里是创建视图的摘要查询,但我认为它对我的需要没有用:
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
【问题讨论】: