Date Dropdown

Introduction

The Date Dropdown fieldtype is a simple fieldtype. It adds 3 dropdown menu`s with the day, month and year to select a value from. It also add some basic template tags for selecting and search entries based on their date.

image
image
image
image

Documentation versions

Installation

Prerequisites

Make sure your system meets the minimum requirements:

Installation Instructions

Update instructions

Template Tags

As for the template tag inside a {exp:channel:entries} loop it is not very advanced. There is only one param and thats the default format="" param.

Tag Parameters

Below are the Tag Parameters. Those parameters can be used in the tag described above

format

Just the default formatting. http://ellislab.com/expressionengine/user-guide/templates/date_variable_formatting.html

{date_dropdown_field format="%F %d %Y"}

Search method

With the search method you can search entries based on their value.

The tag

{exp:date_dropdown:search}

Tag Parameters

Below are the Tag Parameters. Those parameters can be used in the tag described above

year

The year to search for

year="1977"

month

The month to search for

month="1977"

day

The day to search for

day="1977"

orderby

Set the order based on the following values: day month year time

orderby="year"

sort

Set the sort in asc or desc order

sort="desc"

start_on

This is the same as the start_on param in the {exp:channel:entries} tag. http://ellislab.com/expressionengine/user-guide/add-ons/channel/channel_entries.html#start-on

start_on="{current_time format='%d'}"

limit

Set the limit of returning entries.

limit="9999"

check_next_month

if the result is lower then the limit it is also do a check on the next month to get the total limit you set with the limit="" param

check_next_month="yes"

status

Filter entries only on the given status.

status="Open"
`

Tag Variable

Below are the Tag Variables. Those Variables can be used in the tag described above

entry_ids

As result the search method will give all entry ids back.

{entry_ids}

Changelog

1.4.2

1.4.1

1.4.0

1.3.0

1.2.0

1.1.0

1.0