jcdcdev / jcdcdev.Umbraco.ReadingTime

Custom Umbraco property editor for calculating reading time ⏲️
https://jcdc.dev/umbraco-packages/reading-time
MIT License
2 stars 0 forks source link

Isues Rendering #15

Open PrettyDevelopers opened 1 month ago

PrettyDevelopers commented 1 month ago

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

Screenshot 2024-05-17 at 2 53 54 pm

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.

PrettyDevelopers commented 1 month ago

To add to this, this is what I see in debug

Screenshot 2024-05-17 at 3 13 58 pm
jcdcdev commented 1 month ago

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")

image

Model.Value<ReadingTimeModel>("newsDynamicReadTime")

image

Next Steps

PrettyDevelopers commented 1 month ago

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.

Screenshot 2024-05-28 at 10 30 23 AM The using is greyed out so does not seem to be using it Screenshot 2024-05-28 at 10 32 39 AM The value in this case has 5 minutes in the admin but reporting 0 in debug