For the nodes below Widget it works good, but when I add a News node somewhere else the new node won't come below the news tree but on the first quart of the news tree.
It sounds like for some reason the "rootXpath" isn't kicking in and its doing sorting on non-Widget fields. I do think your rootXpath should use the alias of the parent node that contains Widgets, rather than the node itself - unless you're sorting children of Widget nodes?
Can you maybe try using the docTypeAlias attribute instead of rootXpath to limit to `Widget` doctypes?
If not, can you share a bit more about your structure and I'll see if I can reproduce here?
Umbraco 4.0.3 / DocumentSorter 3.0.1: Other new documents not on bottom of tree
I've an old Umbraco 4.0.3 website and I installed the DocumentSorter 3.0.1 package. I've 1 line in the config file:
<add field="nodeName" type="Alpha" order="Asc" rootXpath="//node[@nodeTypeAlias='Widget']" />
For the nodes below Widget it works good, but when I add a News node somewhere else the new node won't come below the news tree but on the first quart of the news tree.
Anyone who can help me?
Thanx!
Hi,
It sounds like for some reason the "rootXpath" isn't kicking in and its doing sorting on non-Widget fields. I do think your rootXpath should use the alias of the parent node that contains Widgets, rather than the node itself - unless you're sorting children of Widget nodes?
Can you maybe try using the docTypeAlias attribute instead of rootXpath to limit to `Widget` doctypes?
If not, can you share a bit more about your structure and I'll see if I can reproduce here?
Thanks,
Tom
is working on a reply...