When a user wants to edit his/her profile, I want to have a tab with a lots of fields but I don't want to save them separately, instead only one value on the database. So, serialize methods would be great, but how can I set a tab with a serialized content, like, how do I retrieve the data?
You can't unless you design a fieldtype or tab plugin to render the inputs how you want and implement custom saving methods for them. For this it'd be best to use a fieldtype plugin as you can render multiple fields with a single field (like the password field does) then have your own storage behavior for it.
The alternative is to create custom inputs using a delimiter field then using CB Auto Actions to grab them POST then store to database after combining their values on the after profile update trigger, but it's no where near as good as doing it as a proper fieldtype.
Kyle (Krileon) Community Builder Team Member Before posting on forums:
Read FAQ thoroughly
+
Read our Documentation
+
Search the forums CB links:
Documentation
-
Localization
-
CB Quickstart
-
CB Paid Subscriptions
-
Add-Ons
-
Forge
-- If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
-- If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please
send me a private message
with your thread and will reply when possible!
-- Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
-- My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.