Open PrettyDevelopers opened 1 month ago
To add to this, this is what I see in debug
Hi @PrettyDevelopers, thanks for taking time to report the issue you are experiencing.
I am unable to replicate this issue on the bundled v13 test site.
Model.Value("newsDynamicReadTime")
Model.Value<ReadingTimeModel>("newsDynamicReadTime")
Model.Value<ReadingTimeModel>("newsDynamicReadTime")
?Hi. No errors. the using is not selected when I use it and the value output is not as you shown. This can be replicated on the latest clean umbraco as well for me.
The using is greyed out so does not seem to be using it
The value in this case has 5 minutes in the admin but reporting 0 in debug
Which jcdcdev.Umbraco.ReadingTime version are you using?
Latest
Which Umbraco version are you using? For example: 10.4.0 - don't just write v10
Latest 13
Bug summary
When on a document type with template rendering the value. Unlike others properties I can not get the value you.
Returning a string, var or anything it is either null or errors.
Steps to reproduce
Just making a normal document type with template. Creating this field and rendering in the view @model.Value("NAME") This is always null
Expected result / actual result
"1 minute" value for read time Actual result is null.
The only way I can get the value is delving into the models .properties IEnumerable and getting it out of that.