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

Taylor Collins

Web Developer

More by Taylor Collins

Similar Addons

See All
Save time, rank better. Redirect management. Schema generation. On-page optimisation. $49

Aardvark SEO

by Candour in Social Media, Tool, Utility, Enhancement, Tag
Save time, rank better. Redirect management. Schema generation. On-page optimisation.
Allows you to manipulate inline SVGs, including injecting classes, width and height properties, and a11y configuration.

SVG

by Ben Furfie in Tag, Tool, Utility, Media
Allows you to manipulate inline SVGs, including injecting classes, width and height properties, and a11y configuration.