I m starting to use tags. While assigning tags at beginning is OK, I got some problems to updated tags in case the user wants to modify the tags on the selected item.
I followed the How-To, I created the data details area and the api that retrieve the tags for the item.
I made the form with a database update made like this:
“estratto” is the table who contains the items to which tags will be associated.
“tags” is the table who contains the Tags names.
“estrattotags” is the subtable which contains IDs for estratto and for tags
as $_POST variables I set
I tried to set S_POST as array too but I always fgot ERROR 500.
Any hint please ?
I got an error because update was empty (no field of the main table updated). So I had a field that doesn’t use in the record and inserted a text that will be updated.
You need to use a repeat block with the array of tags and insert them one by one in the repeat using $value (the output fields are unlikely to populate). Check the array.count() isn’t 0 beforehand
Before doing any sort of Database Manipulation I recommend you use Set Value to see if you’re grabbing the variables correctly and view those in the browser’s network tab