Hi!
What is the simplest way to determine if child nodes of a certain type exist for a document in code-behind?
For example, if a document has cms.files as direct children, I want to display a certain control. Basically:
if (CurrentDocument.HasNodesOfType("cms.file"))
{
myPanel.Visible = true;
}
else
{
myPanel.Visible = false;
}
Does that make sense?
Thanks!