-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filled in Property value is not displayed when using the fallback/default value option #12805
Comments
Hi Esha and thanks! I the future, to save me some time, can you please add a code sample? I had to pause your video on full screen and type the same line on the other screen. A little timesaver would've been great there! I can reproduce this issue, it's because you're trying to fall back from a This is where the conversion fails and we return the default value of a string, which would be an empty string: https://github.com/umbraco/Umbraco-CMS/blob/v10/dev/src/Umbraco.Core/Extensions/PublishedPropertyExtension.cs#L39 |
I'll close this for now as I think it works as intended but I'm curious to hear how you came to |
Hey @nul800sebastiaan, I'll make sure to add the code sample in the future 🙂 The 2022-08-10.14-48-28.mp4 |
Okay, that is a bug then! Reopened this one, will ask the team. |
Umbraco includes both a Because Removing the |
@nul800sebastiaan @ronaldbarendse I think that Ronald's suggestion about being able to choose different types sounds like a good way to go (If possible) since right now you might add a default value which then won't show and not really have no way of knowing why it is not working 🤷♂️ |
Hi everyone 👋 I think what we should be asking ourselves here is: How could anyone know what the correct type of a default value is? You need to be in a typed view, so you can rely on ModelsBuilder generated types to deduct the default value type, or be somewhat of an expert to know the type generated by any given property value converter. I may be presumptuous here, but I would argue that people using the built-in template editor for building templates likely aren't experts, and the template editor surely isn't typed at this point. My point is... being able to choose between different value types for default values likely won't help those affected by this issue, if they have no idea which type to choose? |
Still a bug in 12... |
Hi everyone. My previous comment still stands. How is the editor going to know what type to enter? A simple string value won't work for a lot of editors, and we can't really create a typed "mini-IDE" for building complex default values (i.e. We would love input on this. Maybe we're missing something obvious. The plan for now is to remove the "default value" feature entirely in the new backoffice. |
It seems the "default value" feature has been implemented in the "new" backoffice as well. I have created a PR to "fix" the unfortunate behavior as best possible for V15 - PR in #18144 |
Which exact Umbraco version are you using? For example: 9.0.1 - don't just write v9
10.1.0
Bug summary
When using the fallback/default value option on a property field with a value, the property value is not rendered on the frontend.
2022-08-09.11-28-20.mp4
Specifics
No response
Steps to reproduce
Expected result / actual result
The property value should be displayed on the frontend irrespective of a default value.
The text was updated successfully, but these errors were encountered: