开发者

Date Filter Views As a select box instead of text field

When using the date filter in the views module, is it possible 开发者_StackOverflow社区to have a select list or a nice date popup instead of just a text field.


I don't know exact way in drupal 7 but i'm giving you an example how you can do this in drupal 6 and simulate the same process in drupal 7.

If you have a Date Popup module installed in your site that you can find under module date package. if not then use jquery_ui module and install it.

      In view filter 

        1] click on + sing then select date from dropdown 
        2] choose node or user according to your need 
        3] after that you will find section "Date form type:" select popup radio button 
        4] whatever date field you require from "Date field(s): checkbox" 

that's it.


you can do by using form overridings in drupal it is flexible...

please refer to http://www.lullabot.com/articles/modifying-forms-drupal-5-and-6

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜