How to implement a date reminder Views in Drupal

Source: Internet
Author: User
Tags drupal


Create a new content type: name, birthday, address, and birthday date. "Birthday" is the date type, and "Birthday" is the simplified type, and the value is date ('M-D', birthday ).

Create Views as follows:

Set "birthday date" as a contextual filters, as shown in the following figure.

In this way, the customer will be screened for the birthday, and the results will be as follows:

You can also modify the conditions. For example, you can set a reminder three days in advance as follows:

The result is as follows:

Why do we need to create a birthday date field of the birthday type? The main reason is that the number of bloggers reading less and cannot determine the comparison problem of the date type in Mysql, so we have to convert it to the primary type for processing. You are welcome to provide the primary version.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.