简体   繁体   English

Drupal视图问题

[英]Drupal Views Issue

So we have a drupal site and it is an article intense site. 因此,我们有一个drupal网站,这是一个文章密集的网站。

We have a bunch of articles that are categorized. 我们有一堆分类的文章。

On the home page there is a hero slider and 3 thumbnails boxes below it that contain articles as well. 主页上有一个英雄滑块和下面的3个缩略图框,其中也包含文章。

The default logic is that the home slider is pulling the most recent articles posted. 默认逻辑是主页滑块拉出最新发布的文章。 The issue is that one of the thumbnails below it pulls the most recent article as well. 问题是它下面的缩略图之一也会拉到最新的文章。

How do we make it so that the article that appears in the home hero slider never matches what is in any of the 3 thumbnails below it? 我们如何做到使主页英雄滑块中出现的文章与下面的3个缩略图中的任何一个都不匹配?

Any help is greatly appreciated! 任何帮助是极大的赞赏!

Under PAGER section of the View, you will find an Offset setting, you could use this to skip some nodes from the second view so it skips the nodes already shown by the first view, of course, in order for this to work, both views need to be using the same sorting logic. 在“视图”的“ PAGER”部分下,您会找到一个“偏移”设置,可以使用它从第二个视图中跳过某些节点,因此它会跳过第一个视图中已经显示的节点,当然,为了使这两个视图都能正常工作需要使用相同的排序逻辑。

If the criteria for sorting is more complicated or the nodes are manually selected for each section, then you have to use another taxonomy term to "mark" those nodes intended to appear in the Hero section from the nodes somewhere else. 如果排序标准更加复杂,或者为每个部分手动选择了节点,则必须使用另一个分类术语来标记那些打算从其他地方的节点出现在“英雄”部分中的节点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM