Copied to clipboard

Flag this post as spam?

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


  • Doogie Talons 183 posts 318 karma points
    Nov 21, 2011 @ 16:08
    Doogie Talons
    0

    Razor and Datatypes... Can I show the datatype of a page property ?

    I am trying out some razor and want to know if the following can be done.

    Bear with me !

    Lets say I have a page with the page alias

    pageAlias

    and within that I have a field called

    nameAlias which has a datatype of Textstring.

    Can I list the datatype in the template with code similar to...

    @Model.pageAlias.nameAlias.dataType 

    Which would output the word Textstring

    That's the question, can I show the dataType of a page property within the razor model


  • 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