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")
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)
{
<li>
<a href="@item.Url">@item.Name</a>
</li>
}
But i need to get all properties of these subnodes to be able to compare them to filter them.
EDIT:
Got it, just inserted another foreach with item.Properties
Get all properties of node
Hi,
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")
Thanks
Radek
If I'm understanding your question correctly I think something like this is what you're after:
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:
But i need to get all properties of these subnodes to be able to compare them to filter them.
EDIT: Got it, just inserted another foreach with item.Properties
is working on a reply...