Drupal 从搜索中排除分类列表页面

发布于 2024-08-23 12:11:48 字数 408 浏览 6 评论 0原文

我有一个 Drupal 5 站点,需要在搜索结果中排除分类列表页面。例如 http://site.com/category/role/guest-speaker 返回词汇表角色中标有 guest-speak 的所有节点的列表。

我尝试了高级搜索模块。这只会阻止搜索术语。

然后我有一种预感 lullabot 教程 将是使用,但不要认为我可以过滤类型。

有什么想法吗?

I have a Drupal 5 site that needs to have has taxonomny listing pages excluded in the search results. For instance http://site.com/category/role/guest-speaker returns a listing of all of the nodes tagged with guest-speak in the vocabulary role.

I tried Advanced Search module. This just prevents searching for terms.

I then had a hunch that the lullabot tutorial would be of use, but don't think that I can filter on type.

Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

听你说爱我 2024-08-30 12:11:48

您可以通过编辑 robots.txt 将其从 Google 搜索中排除。

User Agent: *
Disallow: /category

在 robots.txt 上查找 google 以了解更多详细信息...

You can exclude it from google search by editing robots.txt

User Agent: *
Disallow: /category

Look up google on robots.txt for more details...

断爱 2024-08-30 12:11:48

不知道它的效果如何,但是您检查过搜索配置模块吗?

Don't know how well it works, but have you checked search config module?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文