<!-- Enables value converters for all built in property editors so that they return strongly typed object, recommended for use with Models Builder -->
<EnablePropertyValueConverters>true</EnablePropertyValueConverters>
And setting this to false - so you get the "Legacy" nodes as a string, and not as iPublishedContent
7.6 Umbraco.MultiNodeTreePicker
Following the update from 7.5.8 to 7.6 it seems the following code doesnt iterate as used to (no changes to data type or else);
Get nodes where no member selected (i.e. mntp selection empty):
How can I check if MNTP is empty (member in example above) within the foreach clause?
Perhaps checking if its "null", or "String.IsNullOrEmpty"
Hi Paul
I think something has changed, I cant use the same old code to iterate nodes where the MNTP is not selected;
None of the above iterates. It was working fine before the upgrade to 7.6 (at 7.5.8)
I have republished the site/cache and rebuilt indexes but didnt help.
This should be easy but I cant seem to think of a solution...
Something more like this perhaps...
Hi again Paul
That gives the exception:
I have nodes declared like;
I cant understand why it stopped working after the update to 7.6, not well versed with lambda expressions.
I'll assume its a "content" node. Change your var nodes line to use :
lambda makes things a whole lot easier, and you get Intellisense support in Visual Studio.
Just ensure you're using Strongly Typed Methods, and not over using dynamics (eurgh)
Yes a content node. Thanks for the heads up, I'll be reading more on lambda.
However I get exception
with following code;
Ahh you may want to look at
And setting this to false - so you get the "Legacy" nodes as a string, and not as iPublishedContent
Paul you are a gentleman and scholar!
That was it, it was set to true. Changing to false made it work.
I have some reading to do I guess, need to catch up...
Many thanks for your time!
is working on a reply...