Copied to clipboard

Flag this post as spam?

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


  • Shada 55 posts 137 karma points
    Oct 02, 2014 @ 15:14
    Shada
    0

    how to get sortorder of prevalue ?

    Hi Experts!

    I am using Umbraco 7.1.2

    I have data type "City"  with a list of cities.

    I have this code:

     public void GetCity(IContent Content)

            {

                int id = Content.GetValue<int>("city");

                string country = umbraco.library.GetPreValueAsString(Content.GetValue<int>("city"));

                ...

            }

    I just need to get a sortorder of prevalue. Like this: int sortorder = Content.GetSortOrderOfPreValue<int>("city");

    Can anyone please help me here ?

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft