Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am rather new to Umbraco and very excited about this well-built cms. Wow.
I am looking for advice on how to query for the element data types. I found many examples for querying content node data, but it does not work for element types.
I defined an element data type "car" which can be used in nested control property editors on several pages.
I have 2 different questions:
I would be very grateful for a hint into the right direction.
Welcome to our the friendliest community!
Rendering a nested content is easy, you need to use something like this:
var items = Model.Value<IEnumerable<IPublishedElement>>("cars");
foreach(var item in items)
// Render your content, e.g. item.Value<string>("heading")
first let me say that it is amazing how much I can feel and perceive the remarkable friendliness of the Umbraco community, both here in the forum and also elsewhere when I read from and interact with people contributing to Umbraco. In a way, this makes me want to contribute as well, both as a programmer and as a human being, so to speak.
Thank you for your input. Somehow I missed this part of the docs.
As far as my second question goes, I am still unclear. I am experimenting and will come back with another followup question (or I will answer my own question, for the benefit of others with the same ignorance :-)
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted