theblackbird
Total posts: 3
01 Apr 2015 17:51

Hello,

I am very new to cobalt. I tried to find the answer in the doc but can't see any. I have two questions about cobalt, please help

Dose cobalt have the function to let users add their interest article/record into my favourite? And the user can go to his favourite list later ..

Another question is Cobalt can let users dynamic add/delete the field numbers front-end? for example, a recipe submit web site, users can submit their cooking recipes front end. In the cooking-steps field, users can dynamic to Add more fields if more steps, or to delete a step ...as the submit form can't predict how many steps the users will need..

Thank you!

Last Modified: 03 Apr 2015


pepperstreet VIP
Total posts: 3,837
02 Apr 2015 13:39

theblackbird Dose cobalt have the function to let users add their interest article/record into my favourite? And the user can go to his favourite list later ..

Yes. Actually you can see a live example here in the forum! ;)

The user can see and manage favorites on his own section homepage, which includes a respective tab.
cob_users_homepage_bookmarks

Users can bookmark/favorite records on list and detail views.
Add and Remove via AJAX (no page reloads)
cob_frontend_bookmark_add

cob_frontend_bookmark_remove

backend - type parameter
cob_type_params_properties_bookmark

Appearance and wording can be changed to your liking.

 

Another question is Cobalt can let users dynamic add/delete the field numbers front-end? for example, a recipe submit web site, users can submit their cooking recipes front end. In the cooking-steps field, users can dynamic to Add more fields if more steps, or to delete a step ...

Yes and No ;)

Cobalt has no "repeatable" fields per se. Except for the URL field, which supplies the typical +/- buttons to add and remove additional entries.

All general selection fields share an optional parameter to add your own variant.
See user's variant field parameter for Select, MultiSelect, Checkbox, Radio
cob_fields_selects_users_variant

So, in addition to pre-made "steps", a user could add his own step/value. It is slightly different, but might speed up the submission in general, because common steps do not have to be entered over and over again.


Automatic Numbering might be achieved through a field output template (Ordered List markup).


pepperstreet VIP
Total posts: 3,837
02 Apr 2015 14:10

pepperstreet So, in addition to pre-made "steps", a user could add his own step/value. It is slightly different, but might speed up the submission in general, because common steps do not have to be entered over and over again.

Example submission

Multi-Select field (Chosen style)

cob_multiselect_chosen_users_varient1

Selecting of pre-defined options
cob_multiselect_chosen_users_varient2

Adding my own steps...
cob_multiselect_chosen_users_varient3

Frontend output as "unordered list"
cob_multiselect_chosen_users_varient4


theblackbird
Total posts: 3
03 Apr 2015 09:38

Thank you very much~~!

Powered by Cobalt