I have umbraco site and i used many macro in that and it works fine there.My problem is that when i am using those macro in UMF plugin ( currently i am using that in "View/UMFMaster.cshtml" ) its not working.Also i didn't get any error. Could anyone please Help me in that.
hard to say what's going wrong without any code of the macro and how your content tree looks.
The first think that i can think of is that the macro can't get any nodes to display in the menue. If there are no errors then it seems that the macro runs through and just not showing the menu.
Can you provide a screen of your content tree and the code from the macro?
thanks for providing the screens.
The code works on the other nodes (shope/home/searching)?
Does the macro display anything? Some markup or something.
Maybe its because of the .Where("Visible") Statement in your querys. This test a property in the nodes called "umbracoNaviHide". Think this property is not present in the UMF nodes. Maybe thats why no nodes are displayed.
that could be the problem indeed. I think that the @CurrentNode.corporate could also be some dynamic property from the node that you can query. But yes you're right .Children makes more sense here.
Macro not worked in UMF
Hello,
I have umbraco site and i used many macro in that and it works fine there.My problem is that when i am using those macro in UMF plugin ( currently i am using that in "View/UMFMaster.cshtml" ) its not working.Also i didn't get any error. Could anyone please Help me in that.
Hi Pinal,
what type of macro is it you're using? Razor, xslt, usercontrol?
Whats the purpose of the macro?
Hello,
I am using Razor macro.Its for dynamic menu.
Hi Pinal,
hard to say what's going wrong without any code of the macro and how your content tree looks. The first think that i can think of is that the macro can't get any nodes to display in the menue. If there are no errors then it seems that the macro runs through and just not showing the menu.
Can you provide a screen of your content tree and the code from the macro?
Hello,
Here i am sending you screenshot of code.If you need macro code please let me know i will forward you code as well.
Hi Pinal,
thanks for providing the screens. The code works on the other nodes (shope/home/searching)?
Does the macro display anything? Some markup or something.
Maybe its because of the .Where("Visible") Statement in your querys. This test a property in the nodes called "umbracoNaviHide". Think this property is not present in the UMF nodes. Maybe thats why no nodes are displayed.
Hi
I think there is something wrong with first loop
Yasir
Hi Yasir,
that could be the problem indeed. I think that the @CurrentNode.corporate could also be some dynamic property from the node that you can query. But yes you're right .Children makes more sense here.
hi all, thnx for replying
no thats not a problem @CurrentNode.corporate this means that the select only node whom have template corporate
and i have already try with the children but it gives can not bind dynamic node this error gives
is working on a reply...