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 145
Requires Statamic 2

Taylor Collins

Web Developer

More by Taylor Collins

Similar Addons

See All
CLI commands to create test and sample content.

Overload

by Statamic in Tool, Utility
CLI commands to create test and sample content.
Manage and configure XML Sitemaps for your Statamic site with support for aliases, automatic cache management and pagination. $19

XML Sitemaps

by Benji Hughes in Enhancement, Utility
Manage and configure XML Sitemaps for your Statamic site with support for aliases, automatic cache management and pagination.
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)