Copied to clipboard

Flag this post as spam?

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


  • René 327 posts 852 karma points
    Mar 02, 2014 @ 22:08
    René
    0

    Ucomponents - Multi node treepicker

    Hi 

    Umbraco 6.1.6 - Ucomponents 6

    I am trying to get the MNTP to work with the propertyTypePicker.

    I have this code for the rendering of the menu 

    @using umbraco.MacroEngines
    @using umbraco;
    @inherits umbraco.MacroEngines.DynamicNodeContext    
    
    @{
       var propertyAlias = Parameter.chooseMenu;
      }
    <ul class="list icons list-unstyled">
      @{    
          if (Model.AncestorOrSelf("StoreOption").HasValue(propertyAlias, true))
          {
    // This is where i cant figure out how to get the value from the probertyAlias, instead of//"footernavigation2" i need to get the value from the macro 
            var dynamicMultiNodeTreePicker = Model.AncestorOrSelf("StoreOption").footerNavigation2;
            @dynamicMultiNodeTreePicker
            foreach (var item in dynamicMultiNodeTreePicker)
            { 
           <li>
          <i class="icon icon-caret-right"></i>
            <a href="@item.Url" title="@item.Name">@item.Name</a>
                 </li>
    
            }    
        }
      }
    
    </ul>

    Here is the voce for the Macro

    <umbraco:Macro chooseMenu="footerNavigation2" Alias="Choosenavigation" runat="server"></umbraco:Macro>

    On the macro i have a propertyTypePicker

    I have several MNTP to choose different menues. 

    I want to be able to choose thes from the propetyTypePicker

    When i insert the macro i want to be able to choose witch menu / MNTP to rendere 

     

    It is proberly a small issue, but i cant to figuere out how.

    Tanks for the great forum 

    René

  • René 327 posts 852 karma points
    Mar 12, 2014 @ 00:36
  • 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