Free!
Download
Future
Description

Statamic-Future

An Add-on for Statamic v2.x

What is Does

Loops through an array of future dates, days, months, or years

Installation

Copy the Future folder to your site/addons directory

Parameters

  • type: "date", "year", "month", or "day". Defaults to date
  • step: The stepping interval. Defaults to 1
  • limit: The number of values to return. Defaults to 5
  • inclusive: Whether or not to include the current date, day, month, or year. Defaults to false

Variables

  • value: The current value of the loop.

Examples

Output 10 years, inclusively, as form select options

<select name="year">
{{ future type="year" step="1" limit="10" inclusive="true" }}
  <option value="{{ value }}">{{ value }}</option>
{{ /future }}
</select>

Output 5 dates, skipping every other day

{{ future type="date" step="2" limit="5" }}
  {{ value datestring }}
{{ /future }}

Important Links
Details
Released February 22, 2019
Downloads 107
Requires Statamic 2

Taylor Collins

Web Developer

More by Taylor Collins

Similar Addons

See All
Allow your users to update their user information from the front end, including uploading files (avatars, etc) $19

Profiler

by Erin Dalzell in Users, Utility, Tag, Enhancement
Allow your users to update their user information from the front end, including uploading files (avatars, etc)
Manage third party scripts and pixels (tags); like Google Tag Manager but not.

Third Party

by Cody Spring in API, Tag, Utility
Manage third party scripts and pixels (tags); like Google Tag Manager but not.