我有「的內容類型」稱橫幅,它有兩個日期字段:的Drupal 8:查看/過濾標準使用自定義日期字段
ad_start
和
ad_stop
都設置爲日期和時間格式。 ad_start默認設置爲「now」,ad_stop默認設置爲「+7天」。
然後,我有一個觀點「頭版樓旗幟」中,我希望有一個過濾器,以過濾掉
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上。
沒有[date_views](https://www.drupal.org/project/date_views)模塊。 – Hugo