从搜索中隐藏Drupal节点 [英] Hide Drupal nodes from search
问题描述
私有部分中使用的内容类型用于其他地方该网站。
获取Druapl搜索忽略内容/不是索引/不显示在搜索结果中的最佳方式是什么?
有一篇精彩的文章只是在 lullabot 网站。
值得一读的评论,因为有人提出了替代方法这也是通过contrib模块的意思(而不是在你自己的代码中实现一些钩子)。 D6的代码也在评论中。
HTH!
I made a private section on a drupal site by writing a module that checks the RERQUEST_URI for the section as well as user role. The issue I am running into now is how to prevent those nodes/views from appearing in the search.
The content types used in the private section are used in other places in the site.
What's the best way to get Druapl search to ignore the content/not index/not display it in search results?
There is a wonderful article that explains just this on the lullabot site.
It's worth reading the comments to the post too, because people there suggested alternate ways of doing that, also by mean of contrib modules (rather than implementing some hooks in your own code). Code for D6 is in the comment as well.
HTH!
这篇关于从搜索中隐藏Drupal节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!