Skip to content

sandrobocon/field-type-cpf-for-PyroCMS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Field-Type-CPF

CPF (Cadastro de Pessoa Fisica) Field Type for PyroCMS

How to install

Download the cpf field type and place it in addons/shared_addons/field_types or addons/[site_ref]/field_types and make sure that the folder you will copy is named "cpf" without quotes.

How it works

This FieldType will check if the input is 11 numeric long (removing '.', '-' and '/' automatically) and if it is a valid format for an brazilian CPF, make sure to set the field type as unique, if necessary, when using it via Streams module or with Streams API. It will save as bigint, but accept and will return in CPF format '000.000.000-00'

Based on (https://github.com/ChristianGiupponi/Field-Type-Codice-Fiscale)

About

Field type 'CPF' for PyroCMS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages