Copied to clipboard

Flag this post as spam?

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


  • Morten Ørgaard 22 posts 61 karma points
    Oct 24, 2012 @ 15:54
    Morten Ørgaard
    0

    Order by datepicker field

    I'm currently setting up my first page in Umbraco 4.9.

    In my news section I would like to sort the child pages by a newsDate filed I’ve created in the doctype.

    I’ve tried documentSorter, but I can't get it to work.

    Can anybody tell me how to sort the child pages in the backend?

     

    Best regard

    Morten 

  • Fuji Kusaka 2203 posts 4220 karma points
    Oct 24, 2012 @ 16:00
    Fuji Kusaka
    0

    Hi Morten,

    Try this

    <xsl:sort select="newsDateProperty" order="descending"/>
  • Morten Ørgaard 22 posts 61 karma points
    Oct 24, 2012 @ 16:04
    Morten Ørgaard
    0

    Hi Fuji, thank you for a quick response. :)

    I would like to sort the pages automatically in the treeview in Umbraco backend.

  • Fuji Kusaka 2203 posts 4220 karma points
    Oct 25, 2012 @ 06:37
    Fuji Kusaka
    0

    Hi Morten,

    Ah different story then!!!.... am not sure on how to make this happen and if its possible or not.

  • Chriztian Steinmeier 2798 posts 8788 karma points MVP 8x admin c-trib
    Oct 25, 2012 @ 07:52
    Chriztian Steinmeier
    1

    Hi Morten,

    The "Document Sorter" package should be perfect for this - are you getting errors, or does it just seem to not do anything?

    Matt (the package author) is usually very responsive, so I'd recommend you check the dedicated forum for the package and maybe raise the issue there if you can't find any similar issues already reported.

    /Chriztian

  • Morten Ørgaard 22 posts 61 karma points
    Oct 25, 2012 @ 08:26
    Morten Ørgaard
    0

    Hi Chriztian.

    It does nothing so I thought about making my own event handler that sorted the nodes width a certain alias. But if I can get document sorter to work, it would be a lot easier. I'll try to raise the issue the dedicated forum. :)

  • Morten Ørgaard 22 posts 61 karma points
    Nov 05, 2012 @ 09:13
    Morten Ørgaard
    0

    I never got an answer, so I made my own eventhandler, that runs through the subpages and orders them by the value in the datepicker field. :)

Please Sign in or register to post replies

Write your reply to:

Draft