Skip to content

12StarsMedia/count_and_limit

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

Count and Limit fieldtype for Statamic

A Statamic fieldtype to count and/or limit character input. Excellent for use with meta tags.

Changelog

  • 0.1.2 - We need the previously entered value, silly. Also classes can't start with numbers. That's so bogus.
  • 0.1.1 - Ensure ID's don't start with numbers
  • 0.1.0 - Initial release

Installation

Copy the count_and_limit folder to the _add_ons folder of your Statamic website.

Using the fieldtype

In your desired fieldset, give the field a type of count_and_limit

// meta-data.yaml

fields:
  seo_title:
    type: count_and_limit
    count: true
    limit: 44
    display: SEO Title

Parameters

  • count: (Boolean) Do you want to display the character count?
  • limit: (Integer) The number of charaters to limit input to
  • display: (String) The label of the field

Authors

Versioning

This plugin follows Semantic Versioning

Legal

12 Stars Media, © 2015

@12starsmedia - @candidio

Licensed under the MIT License

About

A Statamic fieldtype to count and/or limit character input

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages