开发者

Dates search in Drupal (greater than, less than) using CCK / views / facelet?

I'm working in a site that manage events (like parties). Each event could have several fields, including date, that the user could add thanks to CCK module.

Now, the problem is when I have to search using those fields.

I could not find how to search for events between a range of dates.

I discover the facelet module, which is pretty good, and it is very useful for some kind of search, but as far as I can see it is not p开发者_JAVA技巧ossible search in a range.

Also I do some testing using views, but again, with no results. I can not find how to search a date "greater than" and "less than".

I will really appreciate any help.


I answered this a few days ago:

Drupal Views how to filter items overlapping a date range

The Date module will provide new Filters in your View that are date based. You then tell Views to use a start and end date that is +/- your target date. You could also expose this field, and it will show two fields for picking dates and use those as filters.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜