Copied to clipboard

Flag this post as spam?

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


  • gilad 185 posts 425 karma points
    Dec 07, 2011 @ 17:30
    gilad
    0

    hii.

    first of all - thanks. very nice package. i have 2 questions about..

    1 ) it is possible to deside which properties will not show when see all the content?

    only in edit mode - simple editor for example...

    2 ) it is work with razor?

     

  • gilad 185 posts 425 karma points
    Dec 07, 2011 @ 18:20
    gilad
    0

    Here is an razor example , i use it in macro so i get the node id with the multiType by parameter..

    but i think this is same like use @Model

    @using umbraco.MacroEngines

    @{
    dynamic node = new DynamicNode(@Parameter.nodeId);
    if (@node.HasValue("multiTypePropertyAlias"))
    {
    dynamic Items = node.
    multiTypePropertyAlias;
    if (Items.Count() != 0)
    {
    foreach (dynamic item in Items)
    {
    <span>@item.propertyInYourMultiTypeDataTypeAlias</span>
    }
    }
    }
    }
Please Sign in or register to post replies

Write your reply to:

Draft