Copied to clipboard

Flag this post as spam?

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


  • Manasa 80 posts 201 karma points
    May 07, 2014 @ 16:08
    Manasa
    0

    To retrieve property names instead of property alias

    Hi,

    How to retrieve property names instead of property alias in c#?

    Thanks,

    Manasa

  • Damian Green 452 posts 1433 karma points
    May 09, 2014 @ 01:51
    Damian Green
    100

    Hi

    Use the library function:

    foreach (var p in myNode.Properties)
    {
    
          umbraco.library.GetPropertyTypeName("ContentTypeAlias", p.PropertyTypeAlias );
    
    }
    

    Can use for a single property or the example above loops through all the properties on a ContentType.

    Hope that helps.

    Damian

  • Manasa 80 posts 201 karma points
    May 09, 2014 @ 08:38
    Manasa
    0

    thnks Damian :)

  • Manasa 80 posts 201 karma points
    May 09, 2014 @ 11:58
    Manasa
    0

    thnks Damian :)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies