Copied to clipboard

Flag this post as spam?

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


  • Joei Huang 2 posts 22 karma points
    Mar 27, 2013 @ 09:10
    Joei Huang
    0

    Properties in data types

    Hello,

    I am starting out in Umbraco and I am trying to use Razor to access properties in datatypes like Content Pickers and Media Pickers.

    I have seen the examples but I am still unclear as to how I can know the list of accessable properties of each data type, for example how would I know that content picker has a property called "URL"?

    Thank you!

     

    Joei

  • gary 385 posts 916 karma points
    Mar 27, 2013 @ 10:26
    gary
    0

    Hi Joei

    Yes, this can be a little difficult at first.

    This is the best piece of information we have at the moment, you may need to check if you are using packages, like DAMP for example in the documentation for that package as to the properties available, but this is a good general guide.

    Any questions, please ask here, we are all learning together.

    http://our.umbraco.org/projects/developer-tools/razor-dynamicnode-cheat-sheet

    Look top left side, properties are listed.

    regards

    G

  • Joei Huang 2 posts 22 karma points
    Mar 27, 2013 @ 10:38
    Joei Huang
    0

    Thank you Gary :)

  • gary 385 posts 916 karma points
    Mar 27, 2013 @ 11:17
    gary
    0

    Joei

    Forgot to say also that if you use @Model.Content to call your property you can get Intellisense in WebMatrix and Visual Studio.

    In V6 with MVC you can use @CurrentPage as dynamic, but does not have Intellisense, but if you use @Model.Content. (put the dot) you will see Intellisense.

    Hope that helps

    G

Please Sign in or register to post replies

Write your reply to:

Draft