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

查看:204
本文介绍了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天全站免登陆