简体   繁体   English

Drupal相关文章视图,其中包含要从结果中排除的节点列表

[英]Drupal related articles view with list of nodes to exclude from results

I'm trying to create a list of related articles in Drupal, based on shared tags. 我正在尝试基于共享标签在Drupal中创建相关文章的列表。 I've used this solution and it works great: Creating list of similar nodes in Drupal 7/Views 3 我已经使用了该解决方案,并且效果很好: 在Drupal 7 / Views 3中创建相似节点的列表

However, I wish to expand on this and exclude certain nodes from the related view which are not relevant. 但是,我希望对此进行扩展,并从相关视图中排除不相关的某些节点。 I have a node reference field (field_exclude) for the article which allows the user to select which nodes to exclude. 我有一篇文章的节点引用字段(field_exclude),允许用户选择要排除的节点。

I just need to update this related view to exclude any node ids found in field_exclude. 我只需要更新此相关视图即可排除在field_exclude中找到的所有节点ID。 Any idea on how I update the view to add this functionality? 关于如何更新视图以添加此功能的任何想法吗?

Thanks. 谢谢。

为field_exclude添加一个过滤条件 ,并在其中设置“不为空”值或任何其他可以完成此工作的值。

这里的另一个解决方案是使用NodeQueue模块,用户可以在其中添加列表/视图中的节点。

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

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