Sorry, spoke a bit too soon. I have an Archetype-based Multi URL picker on this site and with the previous version of PEVC the following code works ok:
prop.GetValue<IPublishedContent>("nodeId");
prop is of type ArchetypeFieldsetModel. With the new DLL there is a null ref error.
[NullReferenceException: Object reference not set to an instance of an object.]
Our.Umbraco.PropertyConverters.ContentPickerPropertyConverter.ConvertDataToSource(PublishedPropertyType propertyType, Object source, Boolean preview) +183
Archetype.Models.ArchetypePropertyModel.TryConvertWithPropertyValueConverters(Object value, IEnumerable`1 converters) +201
Archetype.Models.ArchetypePropertyModel.GetValue() +133
Archetype.Models.ArchetypeFieldsetModel.GetValue(String propertyAlias)
That still behaves the same way. To clarify my previous message, the property with alias "nodeId" within the archetype property does have a value, so its not just a null check issue. All I can say is the ArchetypeFieldsetModel's GetValue<T> method plays nicely with the v2.0.2 version, but this update with umbracoInternalRedirectId seems to break it.
I can send you a zipped site if easier? Its SQL CE.
So do you mean you are not able to check for umbracoInternalRedirectId in any situation? This version works with Archetype but does not resolve the original issue with umbracoInternalRedirectId. Not to worry, if its not possible I will just change the umbracoInternalRedirectId to a nemeric field.
v7 version - incompatibility with umbracoInternalRedirectId
Hi Jeavon,
Loving this little package. Would you mind updating the v7 version so it does not convert an umbracoInternalRedirectId alias property?
I have that in there already for the Content Picker from the v6 version, are you using that?
I've not tested it so maybe it's not working the same way in v7....
Yep - not working the same way in the v7 version. I'm on Umbraco 7.1.3
Ok, I'll investigate. Are you using v2.0.2?
Yes. I was on v2.0.0 but just updated. Same behaviour with both, no redirection takes place.
Ah wait, have you enabled it in umbracoSettings.config?
Nope, it's not that, investigating further
Think I've got it, could you try this? https://dl.dropboxusercontent.com/u/14453377/Our.Umbraco.PropertyEditorConverters.zip
Sorry, spoke a bit too soon. I have an Archetype-based Multi URL picker on this site and with the previous version of PEVC the following code works ok:
prop.GetValue<IPublishedContent>("nodeId");
prop is of type ArchetypeFieldsetModel. With the new DLL there is a null ref error.
and it wasn't there with the previous version?
I think the value must be null coming into the converter, I will put in a handler for that
Ok, I've updated the DLL in the dropbox, could you try it out?
That still behaves the same way. To clarify my previous message, the property with alias "nodeId" within the archetype property does have a value, so its not just a null check issue. All I can say is the ArchetypeFieldsetModel's GetValue<T> method plays nicely with the v2.0.2 version, but this update with umbracoInternalRedirectId seems to break it.
I can send you a zipped site if easier? Its SQL CE.
Hey Barry,
Strange, a zip would be great, DM me on Twitter with a link if you prefer to public posting.
Cheers,
Jeavon
Hey Barry,
I found the issue, Archetype doesn't send a PropertyTypeAlias, so I can't check for umbracoInternalRedirectId. This should now be handled in the latest version on drop box. https://dl.dropboxusercontent.com/u/14453377/Our.Umbraco.PropertyEditorConverters.zip
Let me know.
Jeavon
So do you mean you are not able to check for umbracoInternalRedirectId in any situation? This version works with Archetype but does not resolve the original issue with umbracoInternalRedirectId. Not to worry, if its not possible I will just change the umbracoInternalRedirectId to a nemeric field.
Ok, I have just updated the dropbox again, I think we've got it this time for all usages...?
Thats the puppy! Nice one, beer for you at CG14.
Awesome! I will add a new release! See you at CG14.
is working on a reply...