drupal 7 视图块和上下文过滤器不起作用 [英] drupal 7 views block and contextual filter not working

查看:31
本文介绍了drupal 7 视图块和上下文过滤器不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为块类型视图设置上下文过滤器,但是当我预览它时,它什么也不返回......更具体地说,当我尝试与页面相同的视图时,上下文过滤器工作正常并过滤内容但是当我将视图作为块尝试时,尽管提供默认值"设置为来自 url 的原始值",但没有返回任何内容.知道可能是什么问题吗?顺便说一下,我在这里尝试了解决方案,但它仍然不起作用 https://drupal.stackexchange.com/questions/13868/drupal-7-views-contextual-filters-with-page-blocks

I'm trying to set a contextual filter for a block type views but when I preview it, it returns nothing... More specifically when I try the same view as a page the Contextual filter is working fine and filtering the content but when I try the view as a block nothing is returned although the "Provide default value" is set as "raw value from url". Any idea what might be the problem? By the way I tried the solution here but it's still not working https://drupal.stackexchange.com/questions/13868/drupal-7-views-contextual-filters-with-page-blocks

推荐答案

解决方案是重新安装 drupal,不知道为什么,清除缓存没有帮助.

The solution was to re-install drupal, no idea why, clearing the cache wasn't helping.

这篇关于drupal 7 视图块和上下文过滤器不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆