I would like to know how I can impose a sort according to the vocabulary order element on the way a directoryTree is displayed.
For example, in this code
<extension target="org.nuxeo.ecm.directory.ui.DirectoryUIManager"
point="directories">
<directory name="topic" layout="vocabulary" sortField="ordering">
<deleteConstraint
class="org.nuxeo.ecm.directory.api.ui.HierarchicalDirectoryUIDeleteConstraint">
<property name="targetDirectory">subtopic</property>
<property name="targetDirectoryField">parent</property>
</deleteConstraint>
</directory>
<directory name="subtopic" layout="subtopic_vocabulary" sortField="parent" />
</extension>
the attribute sortFied="ordering" in the first line, will cause any directory widget to correctly sort the directory for display according to the order field, but this has no affect on the associated directory tree widget.
The directoryTree bySubjectsNavigation, which displays this topic/subtopic tree will continue sorting the topics in ascending order by the label element. I cannot find any way to change this.
Can you tell me how to get the tree to sort by the vocabulary order element, or by some other mechanism. Thanks in advance
Neil