XF 2.0 Fields for my new content type: definition, validation & saving


Well-known member
I have built my new content type, but there should be many fields (text, checbox, dropdown) between title and message field.

So I wonder how to do the definition, validation and saving the best (XF2-) way..

I also see that there are some Validator classes in the XF\Validator namespace. But they are just for special cases, that I don't have (email, url, username, ..)

As I want to search through most of the fields, I think they should all go in the main DB table.

What's the best way, to save fields with multiple values? Use bitwise logic like I remember form vBulletin?

Can anyone show me the right direction? :)