Copied to clipboard

Flag this post as spam?

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


  • Mads Krohn 211 posts 504 karma points c-trib
    Jan 26, 2012 @ 00:06
    Mads Krohn
    0

    Auto sort "bug"

    Thank you guys for an awesome package!

    I been playing around with it a little, and I made a configuration that looks something like this:
    <add field="nodeName" type="Alpha" order="Asc" rootXpath="//SomeDocType[@isDoc]//*[@isDoc]" disableTreeRefresh="false"/>

    I wanted to simply sort everything in a certain folder regardles of type and depth. This is all working fine except when I'm saving a document whos parent arent published. Then the sort simply just doesn't happen. I'm not entirely sure if it's a bug or by design, but imho it's a bug, so I thought I would throw it out there :)

    Kind regards

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Jan 26, 2012 @ 06:49
    Jeroen Breuer
    1

    You're using an XPath which means it's using the xml from umbraco.config most likely. In the umbraco.config xml are only published items so I think this is by design. Maybe this package needs to be updated so it can also use unpublished nodes. It should create it's own xml for that. Here is an example on how I do that for media: http://our.umbraco.org/forum/developers/razor/27521-Get-All-Images-in-Media-Gallery#comment102996.

    Jeroen

  • Mads Krohn 211 posts 504 karma points c-trib
    Jan 26, 2012 @ 10:53
    Mads Krohn
    0

    Ahh of course, makes perfect sense, thanks for pointing that out :)

Please Sign in or register to post replies

Write your reply to:

Draft