Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I have a CSV string of values that I want to save into a tags datatype property.
I thought I could do this by simply assigning the CSV to the property of the item I'm working with (in my case a Media item) like this:
string tags = "robert,dougan,developer";mediaItem.getProperty("tags").Value = tags;
However this doesn't work. Does anyone know how to do this?
Thanks,
Robert
Hi Robert,
It sounds like the CSV values aren't registered as 'tags' in the database.
See my answer on this other post: http://our.umbraco.org/forum/developers/api-questions/14273-Adding-Data-To-Tags-DataType?p=0#comment52646
Cheers, Lee.
Ah great, thanks Lee, this looks like the problem.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Saving Tags Using the API
Hi,
I have a CSV string of values that I want to save into a tags datatype property.
I thought I could do this by simply assigning the CSV to the property of the item I'm working with (in my case a Media item) like this:
string tags = "robert,dougan,developer";
mediaItem.getProperty("tags").Value = tags;
However this doesn't work. Does anyone know how to do this?
Thanks,
Robert
Hi Robert,
It sounds like the CSV values aren't registered as 'tags' in the database.
See my answer on this other post: http://our.umbraco.org/forum/developers/api-questions/14273-Adding-Data-To-Tags-DataType?p=0#comment52646
Cheers, Lee.
Ah great, thanks Lee, this looks like the problem.
Robert
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.