My Drupal is displaying a simple custom view, with a nodelist. The trick is that my view displays comments under nodes in the list. That is too much for one page and I need to get a list of pure nodes and hide comments under ReadMore link.
我的Drupal正在显示一个带有节点列表的简单自定义视图。诀窍是我的视图在列表中的节点下显示注释。这对于一个页面来说太多了,我需要获取一个纯节点列表并在ReadMore链接下隐藏注释。
I've tried to play with comments settings for my the custom node type I am displaying, but even if I choose "Display on separate page" - the comments themselves still remain in the main grid.
我尝试使用我正在显示的自定义节点类型的注释设置,但即使我选择“在单独的页面上显示” - 注释本身仍保留在主网格中。
How to I move comments under ReadMore link to make them invisible in the grid?
如何在ReadMore链接下移动注释以使它们在网格中不可见?
1 个解决方案
#1
Ahh the joys of theming views.
啊,主观点的乐趣。
查看主题指南
This guide should be enough to get you started.
本指南应该足以让您入门。
I'd recommend using the views-view-VIEWNAME-field.tpl.php as opposed to writing a theme function.
我建议使用views-view-VIEWNAME-field.tpl.php而不是编写主题函数。
Hope this helps
希望这可以帮助
#1
Ahh the joys of theming views.
啊,主观点的乐趣。
查看主题指南
This guide should be enough to get you started.
本指南应该足以让您入门。
I'd recommend using the views-view-VIEWNAME-field.tpl.php as opposed to writing a theme function.
我建议使用views-view-VIEWNAME-field.tpl.php而不是编写主题函数。
Hope this helps
希望这可以帮助