Slider only allows integers. Trying to update priority results in error with "The JSON value could not be converted to System.Int32. Path: $.from | LineNumber: 0 | BytePositionInLine: 11.
A fatal server error occurred. If this continues, please reach out to your administrator."
I resolved the issue by changing the range to 1 to 10, and updating the template to
var priority = double.Parse(node.HasValue("searchEngineRelativePriority") ? node.Value<string>("searchEngineRelativePriority") : "5")/10;
What type of issue is it? (Choose one - delete the others)
Discussion not sure if this is an issue with documentation or a bug to be fixed. Slider only accepts integers and this documentation is using doubles.
What article/section is this about?
https://docs.umbraco.com/umbraco-cms/tutorials/creating-an-xml-site-map
Describe the issue
Slider only allows integers. Trying to update priority results in error with "The JSON value could not be converted to System.Int32. Path: $.from | LineNumber: 0 | BytePositionInLine: 11. A fatal server error occurred. If this continues, please reach out to your administrator."
I resolved the issue by changing the range to 1 to 10, and updating the template to
var priority = double.Parse(node.HasValue("searchEngineRelativePriority") ? node.Value<string>("searchEngineRelativePriority") : "5")/10;