14 Posts
Antares74
7 years ago
Topic

Hi,

i need to save data in a content view by click a button.

I try to explain better.

I have a table (products), when i click on a product and it show its detail page, I want to be able to click a button and save the information in a second table.

Similar a cart....

...how can I start?

Thanks  a lot!

Get a VIP membership
4229 Posts
Kadministrator
7 years ago
1
Level 1

You can add a form on the page trough form module or form field plugin, then copy values from content to form fields using SD databaser plugin. You can  put fields except send button ito a hidden position so that they are invisible to user.

14 Posts
Antares74
7 years ago
0
Level 2

Thanks for your help,

I tried, but I have a problem.

I want to save the IDs of the selected items / products that user selects in to a table.

I used form field plugin to add a form on the content page, but I have not figured out how to use SD databaser plugin. I've tried to use SD live CCK to retrive ID of article but it dosn't work, i retrive art_title, but NO art_id...

Can you help me on how to use SD databaser plugin?

Thanks a lot

4229 Posts
Kadministrator
7 years ago
3
Level 1

Sd databaser is not going to help here - instructions for all SD plugins are written on the product page otherwise. With SD live you need sure you actually have field you are getting value from in the content view, you can use hidden variation or place it in hidden position.

14 Posts
Antares74
7 years ago
2
Level 2

I believe that i can not use SD databaser... (i have to copy the ID from the content view to the FORM...);i believe that SD Live CCK Field is the right choice,

but I can not understand why I can not extract the ID... I manage to extract any other data, except  ART_ID, CCK_ID, the field remains empty.

Both CCK_ID and ART_ID  are present in the content view...

Any suggestions?

4229 Posts
Kadministrator
7 years ago
1
Level 3

Probably your problem is that you are trying overwrite CCK_ID and ART_ID field in the form - those values are automatically assigned and can't be changed. You need to store those values in another field (or in another words you can't store to the same article from a different form)

14 Posts
Antares74
7 years ago
0
Level 4

SOLVED

thanks for your suggestions, I have set the  field read-only, and now it works!

Thank you!

Get a VIP membership