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
how can i get all generic properties of node?
I have node with name Workplace with tab Filters alias and here are properties Filter A, Filter B, Filter C...
Can i somehow get all of there properties and their values?
something like @CurrentPage.GetAllProperties() => ("name", "value")
If I'm understanding your question correctly I think something like this is what you're after:
foreach (var prop in Model.Content.Properties)
/* get each property value */
var value = prop.Value;
Thanks Nathan, yes this gives me all properties of node, but now i have another issue.
If have properties in this node, and i´m getting here subnodes from another node:
//get all nodes with correct document type
var list = CurrentPage.AncestorOrSelf(1).Descendants("Product");
foreach (var item in list)
But i need to get all properties of these subnodes to be able to compare them to filter them.
Got it, just inserted another foreach with item.Properties
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted