Hello everyone, I'm an old user returning to Umbraco.
I have been messing around with a test project to see if Umbraco is a good solution for my current client. I started working with an empty project and i'm working my way up to a proper website. I'm currently stuck on a minor issue concerning the checkboxes.
I made a Document Type with a property to enable/disable a part of the layout, however, no matter what I select in the backend, the value of that true/false editor remains False.
Did I do something wrong? I am using 7.4.1. Another client of mine is using Umbraco 7.2.5 and it works like a charm there.
I used @CurrentPage.checkboxProperty, thats how i get all Umbraco model values in the Razor views. Perhaps I failed to mention that this issue is in the templates.
Thank you, that worked. The other method I used also worked in the end.
Apparently... when you change a composition, you have to save the types using that composition for it to work. So razor couldn't really find the property.
True/False editor always returning False
Hello everyone, I'm an old user returning to Umbraco.
I have been messing around with a test project to see if Umbraco is a good solution for my current client. I started working with an empty project and i'm working my way up to a proper website. I'm currently stuck on a minor issue concerning the checkboxes.
I made a Document Type with a property to enable/disable a part of the layout, however, no matter what I select in the backend, the value of that true/false editor remains False.
Did I do something wrong? I am using 7.4.1. Another client of mine is using Umbraco 7.2.5 and it works like a charm there.
Thanks for reading.
Anyone who knows what causes this? I have not yet found the cause, and I'm going around the issue by using a radio button now.
Hi Jeroen,
can you show the code on how you are retreiving the value ?
Normally it would be something like this :
Dave
I used @CurrentPage.checkboxProperty, thats how i get all Umbraco model values in the Razor views. Perhaps I failed to mention that this issue is in the templates.
What do you get if you do this ?
Dave
Thank you, that worked. The other method I used also worked in the end.
Apparently... when you change a composition, you have to save the types using that composition for it to work. So razor couldn't really find the property.
Weird. Thank you for the help!
is working on a reply...