<IEnumerable<Image>> model property not exposed in template
I have a document type called Project that has various string-valued properties, and a property called ExtraPictures with a Media Picker editor. In templates, the Project model duly exposes all of the string properties, but notExtraPictures, though it is there in models.generated.cs:
/// Extra pictures
///
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder", "8.0.1")]
[ImplementPropertyType("extraPictures")]
public IEnumerable ExtraPictures => this.Value<>>("extraPictures");
In templates based on Project itself, I can get to the values with .Value("extraPictures"), but when on a parent object with Project children, that fails as well. I am new to Umbraco development, so must be overlooking something very obvious?
<IEnumerable<Image>> model property not exposed in template
I have a document type called Project that has various string-valued properties, and a property called ExtraPictures with a Media Picker editor. In templates, the Project model duly exposes all of the string properties, but not ExtraPictures, though it is there in models.generated.cs:
/// Extra pictures /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder", "8.0.1")] [ImplementPropertyType("extraPictures")] public IEnumerable ExtraPictures => this.Value<>>("extraPictures");
In templates based on Project itself, I can get to the values with .Value("extraPictures"), but when on a parent object with Project children, that fails as well. I am new to Umbraco development, so must be overlooking something very obvious?
is working on a reply...