Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sander van de Pas 74 posts 147 karma points
    Apr 25, 2013 @ 10:20
    Sander van de Pas
    0

    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!

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Apr 29, 2013 @ 00:52
    Tom Fulton
    0

    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 

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies