2017 © Pedro Peláez
 

craft-plugin increment

Increment Plugin for Craft CMS

image

boboldehampsink/increment

Increment Plugin for Craft CMS

  • Thursday, April 5, 2018
  • by boboldehampsink
  • Repository
  • 1 Watchers
  • 10 Stars
  • 9,903 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 2 Open issues
  • 11 Versions
  • 4 % Grown

The README.md

DEPRECATED - Increment plugin for Craft CMS

Plugin that automatically ups each increment field by one number., (*1)

Features: - Able to output the value in the CP and in the Site (no other plugin has this feature) - Ability to have the value prefixed with text or variables (like {id} or {{now.year}}) - Ability to reset increment yearly - Ability to zero pad the value - This plugin checks if the calculated next value is still unique on save, (*2)

Important: The plugin's folder should be named "increment", (*3)

Credits: This plugin's idea is derived from the Sprout Incremental Plugin by Barrel Strength Design, (*4)

Deprecated

With the release of Craft 3 on 4-4-2018, this plugin has been deprecated. You can still use this with Craft 2 but you are encouraged to use (and develop) a Craft 3 version. At this moment, I have no plans to do so., (*5)

Changelog

0.3.4

  • Fixed yearly reset for non-entry elements

0.3.3

  • Fixed setting of postDate on fresh entries

0.3.2

  • Fixed bug where yearly reset looked at the wrong date (dateCreated in stead of postDate)

0.3.1

  • Fixed bug where padding was not a number (thanks to @steverowling)
  • Fixed bug where postDate was assumed for all Element Types (thanks to @steverowling)

0.3.0

  • Refactor to only recalculate numbers on save when entry is a new record
  • Added the ability to reset increment yearly

0.2.2

  • Added the ability to control number recalculation on save

0.2.1

  • Added the ability to use the then yet non-existing postDate in prefix like in Craft's Live Preview

0.2

  • Added the ability to add a prefix to each value, like {id} or {{now.year}}
  • Added zero padding options
  • Prevent duplicate values when elements are created at the same time.
  • Many small improvements and code cleanups
  • Added MIT License

0.1

  • Initial push to GitHub

The Versions

05/04 2018

dev-master

9999999-dev

Increment Plugin for Craft CMS

  Sources   Download

The Requires

 

09/05 2017

0.3.4

0.3.4.0

Increment Plugin for Craft CMS

  Sources   Download

The Requires

 

06/01 2017

dev-develop

dev-develop

Increment Plugin for Craft CMS

  Sources   Download

The Requires

 

06/01 2017

0.3.3

0.3.3.0

Increment Plugin for Craft CMS

  Sources   Download

The Requires

 

06/01 2017

0.3.2

0.3.2.0

Increment Plugin for Craft CMS

  Sources   Download

The Requires

 

21/07 2016

0.3.1

0.3.1.0

Increment Plugin for Craft CMS

  Sources   Download

The Requires

 

19/01 2016

0.3.0

0.3.0.0

Increment Plugin for Craft CMS

  Sources   Download

The Requires

 

22/04 2015

0.2.2

0.2.2.0

Increment Plugin for Craft CMS

  Sources   Download

The Requires

 

20/04 2015

0.2.1

0.2.1.0

Increment Plugin for Craft CMS

  Sources   Download

The Requires

 

10/04 2015

0.2

0.2.0.0

Increment Plugin for Craft CMS

  Sources   Download

The Requires

 

09/01 2015

0.1

0.1.0.0

Increment Plugin for Craft CMS

  Sources   Download

The Requires