Created
May 22, 2013 12:05
-
-
Save trssaunders/5627055 to your computer and use it in GitHub Desktop.
Get MNTP values recursively, as you can't use the built in Umbraco method as it incorrectly detects values. i.e. string[] nodeIds = Model.GetPropertyValue(Parameter.advertSlot, true).Split(','); does not go all the way up the tree if a MNTP has previously had a value that has been subsequently deleted
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string[] nodeIds = Model.AncestorOrSelf((Func<dynamic, bool>)(n => n.HasValue("fieldAliasHere"))).GetPropertyValue("fieldAliasHere").Split(','); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment