在Drupal 8中,我有一个视图名称事件,其中内容类型:事件。
使用两个外接过滤器,Event Date
和is between
。活动日期的运营商Now
的值为+2 years
和now until the next 2 years
。因此,当用户首次访问该页面时,它会显示Event Type
默认的所有事件。
但是,当用户更改Event Date
过滤器时,Any
过滤器将丢失,并显示带有class Base {
int b=10;
public void show() {
System.out.println("Base show() called");
}
}
class Derived extends Base {
int b=20;
public void show() {
System.out.println("Derived show() called");
}
}
public class MainClass {
public static void main(String[] args) {
Base bb = new Derived();;
bb.show();
System.out.println(bb.b);
}
}
选项的事件。
这是一个问题吗?因为,显示了过去的所有旧事件。
有人知道在应用其他过滤器后如何保持日期范围过滤器?
我使用了datetime_range模块,并在https://www.drupal.org/project/drupal/issues/2786577#comment-11860104使用#60修补了它,以启用带视图的日期范围过滤。 感谢
答案 0 :(得分:0)
如果您选择default value
grouped filters
单选按钮