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 :)
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.
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
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
Ahh of course, makes perfect sense, thanks for pointing that out :)
is working on a reply...