Hello, so im trying to get the elements name from elements inside a Nested Content.
For example
Nested Content Name/ Aliad = Elements
Elements has many elements. Img ->
and i want the Name of the element: ->
var myelements = Model.Value<IEnumerable<IPublishedElement>>("elements");
foreach (var item in myelements)
{
string name = detail.Value<string>("name");
<!-- other properties etc -->
}
Nested Contents (Elements) Name
Hello, so im trying to get the elements name from elements inside a Nested Content. For example Nested Content Name/ Aliad = Elements Elements has many elements. Img -> and i want the Name of the element: ->
[ { "key": "3e22fc8b-6b26-4773-860f-dcb4a8ffbd67", "name": "Article Text", "ncContentTypeAlias": "articleText_Element", "articlePicker": "umb://document/b8286876b8364bb78ee01c62ecad97a2" } ]
Any tips for me?
Kind Regards / Emil
try this
I've already tried that one, no luck for that. :/
Are you getting any errors?
No, i get nothing. but this is just getting the property name from the Element string name = detail.Value
So i dont know how there's nothing to grab the name of the Element If you understand.
Could you provide an example of the code you are trying
is working on a reply...