【发布时间】:2017-03-02 22:27:10
【问题描述】:
我有一个名为 Banner 的“内容类型”,它有两个日期字段:
ad_start
和
ad_stop
都设置为日期和时间格式。 ad_start 默认设置为“现在”,ad_stop 默认设置为“+7 天”。
然后我有一个视图“Frontpage Floor Banner”,我想在其中有一个过滤器,以便过滤掉所有带有
的横幅ad_start => "now"
和
ab_stop <= "now"
在配置过滤条件下:内容:开始(field_ad_start),操作员有以下可能的选项可供选择:
Is equal to
Is not equal to
Contains
Contains any word
Contains all words
Starts with
Does not start with
Ends with
Does not end with
Does not contain
Length is shorter than
Length is longer than
Regular expression
Is empty (NULL)
Is not empty (NOT NULL)
但是我不明白我可以使用哪个运算符来实现这一点......
这是在 8.0.0-beta9 上。
【问题讨论】:
标签: sorting date drupal filter