Show last modified

Free!
Download
Description

A simple statamic fieldtype to display readonly last modified date.

Installation

  1. Copy the "LastModified" folder to your Statamic site/addons directory
  2. Run php please update:addons to load the addon's dependencies.

Configuration

You can configure the addon by visiting CP > Addons > Show last modified:

  • Date format - the date format you want the last modified to be represented in.

For full reference of the supported format character and results, see the documentation of date(): php_date

Usage

  • add a type: last_modified field to the top level of your fieldset.

Examples

In your fieldtype, it has to be a top level field, otherwise it will not work!

sections:
  main:
    display: "Main"
    fields:
      show_last_modified:
        type: last_modified
        display: Last modified

this will result in something like: show last modified

License

Icons made by Freepik from www.flaticon.com

MIT License


Important Links
Details
Released September 27, 2019
Downloads 20
Requires Statamic 2

Mykolas Mankevicius

I create Statamic things :)

More by Mykolas Mankevicius

Similar Addons

See All
A Statamic fieldtype that gives you a disabled text input

Disabled

by Wout Mager in Fieldtype
A Statamic fieldtype that gives you a disabled text input
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.