Copied to clipboard

Flag this post as spam?

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


  • Yan 36 posts 56 karma points
    Nov 05, 2010 @ 22:25
    Yan
    0

    Contour PreValue sort

    I use prevalue get value from SQL database option form one contour drop download list, currently it sort value in alphabetically by default. How I can change sort by key (id) instead? Because I need one item always on top of dropdown list, and one always on bottom of list. Or I need create another prevalue type?

    Thanks in advance!

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Nov 08, 2010 @ 11:42
    Ismail Mayat
    0

    Yan,

    I have recently worked on site where i created my prevalues as umbraco nodes, this means client can edit through content section and also sort as the sort order is picked up from the content tree.  You could also add field to your source table called sort id and have values there then your query that retrieves the data can also sort on that id.

    Regards

    Ismail

  • Yan 36 posts 56 karma points
    Nov 08, 2010 @ 17:35
    Yan
    0

    Hi Ismail, in the current contour prevalue sources type: sql database,
    It only has three feilds that I can enter: table name, key column, value column

    my question was contour related, I do have sort in ms db table. Just in using contour prevalue it didn't give feild to enter the sort and sort by.

     

Please Sign in or register to post replies

Write your reply to:

Draft