-
Notifications
You must be signed in to change notification settings - Fork 13
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
In the Core version, there doesn't seem to be a GetPropertyValueType method #23
Comments
@zpbd to continue to work in this way you can continue to use this package, it will work for all non "v2" editors, if you are using "v2" UDI editors you would need to create your own version of the "v1" editors. I need to have a discussion to see if we can get the methods in Umbraco turned back to being virtual as I think this is a good reason... |
Looks like we will keep using the v1 editors and the package for now then as I like the solution we have. Thanks for the lightning reply! |
Hi again Jeavon, I have a performance question that I was hoping you would have some insight on. So coming back to this, I decided it would be better for the long term to try and use the v2 MNTPs with the core. I settled on a way of doing it so that I essentially only need to add two lines of code for each of the alias / type combinations of which there may be many:
in combination with a new attribute that inherits from
and an
This appears to work - ModelsBuilder is generating properties with the correct types and I am able to retrieve the values. But would there be any extra load from having, say, a dozen With the previous setup, it was a simple dictionary lookup regardless of how many alias/type combinations there were, whereas potentially now there could be dozens of these converters, and if they all need to be cross-checked against every single property, I could see that being an issue. |
Hi. After upgrading to Umbraco 7.6.2 and removing the package, it became clear that the
virtual Type GetPropertyValueType(PublishedPropertyType propertyType)
property is no longer a thing.We were using this in a MultiNodeTreePickerConverter similar to the example here (Example 1 step 2).
We had modified this example so that there was actually a dictionary of aliases and types, so we had a nice quick way of hooking up new MNTP properties.
I'm aware that you can use an attribute on the class now to control the outputted type. But is there a way of continuing to do this without having to create lots of individual converters for each type of MNTP implementation?
The text was updated successfully, but these errors were encountered: