Hi,
I would do following modification in ~\CMSModules\Content\Controls\ContentTree.ascx.cs file in treeElem_TreeNodePopulate method to achieve such behavior:
Original code:
System.Web.UI.WebControls.TreeNode newNode = CreateNode(childNode, index, true);
e.Node.ChildNodes.Add(newNode);
index++;
New code:
if (childNode.GetValue("DocumentCulture").ToString().ToLower().Equals(CultureHelper.GetPreferredCulture().ToLower()))
{
ystem.Web.UI.WebControls.TreeNode newNode = CreateNode(childNode, index, true);
e.Node.ChildNodes.Add(newNode);
index++;
}
I hope this will help you.
Best regards,
Ivana Tomanickova