Develop a new attribute type

Permalink
Hello,

I need to develop a new attribute type to add in one page type. The new attribute type will not be user editable (read-only), it need to generate an unique number in previously defineted standard, eg. "S18001".

What should be my first step? Does someone have a tip or literature?

Thank in advance guys!

 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi igors,

Have you reviewed the documentation on attributes?
https://documentation.concrete5.org/developers/attributes/overview...
JohntheFish replied on at Permalink Reply
JohntheFish
Rather than develop a new attribute type from scratch, many simple attributes can be developed by inheriting/extending an existing attribute such as text or number. Doing so is usually a lot easier because most of the difficult work is inherited and you don't need to provide value entity.