Nodemill Addins


Install Fields, APIs and pages (coming soon) using the public repository.

Search:
Within:

Nodemill Field: readonly

Nodemill Version Nodemill Downloads

Install

nodemill install field readonly

Details

  • Author: Paul Burrowes
  • Short desc: Readonly field
  • Keywords: readonly,read,only

Full Description

Readonly field for standard CMS pages - useful to show data but not allow editing. You can combine it with the parameters defaultValue (set first time) and override (set every time) to control user info, ID or timestamps.

Version history

  • 1.0.0 Created

Examples

created: {type: "readonly", title: "Created", defaultValue: require('moment')().format('HH:mm:ss YYYY-MM-DD')}
lastEdited: {type: "readonly", title: "Last Edited", override: require('moment')().format('HH:mm:ss YYYY-MM-DD')}