• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

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

#1
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? :)