Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
is working on a reply...