Checkboxlist sometimes saves label, sometime preValueId
Hi I have created a new datatype (using the built in control - Checkbox list - with 3 test values)
The idea is to add this as a new property on a Document type, and also add this as a property to the Member Type, in order to control viewing permissions
When someone views a piece of content we can check if they have the relevant permission to view the full contents of the page, if not we just show a teaser piece of content.
The problem i have is that when i retrieve the values for the page, i get a string array of the datattypes labels, however when i retrieve the values for the logged in member i get an int array of the datatypes prevalues. Both of the datas are correct as to what has been selected for them in umbraco backoffice.
Not sure if i am doing something worng but it seems very strange that Documents are saving the lables, whereas members are saving the prevalues.
Checkboxlist sometimes saves label, sometime preValueId
Hi I have created a new datatype (using the built in control - Checkbox list - with 3 test values)
The idea is to add this as a new property on a Document type, and also add this as a property to the Member Type, in order to control viewing permissions
When someone views a piece of content we can check if they have the relevant permission to view the full contents of the page, if not we just show a teaser piece of content.
The problem i have is that when i retrieve the values for the page, i get a string array of the datattypes labels, however when i retrieve the values for the logged in member i get an int array of the datatypes prevalues. Both of the datas are correct as to what has been selected for them in umbraco backoffice.
Not sure if i am doing something worng but it seems very strange that Documents are saving the lables, whereas members are saving the prevalues.
Any help would be appreciated.
Thanks
is working on a reply...