I'm trying to create a Left navigation using Partial View Macro. To do that, I need to delete Home node form result of the CurrentPage.AncestorsOrSelf();
Please let me know if anyone knows how to delete items from CurrentPage.AncestorsOrSelf()
I have written that macro using Razor, now trying to convert to the Partial View Macro. But there is no much help for Partial View Macros
Delete Items from CurrentPage.AncestorsOrSelf()
Hi
I'm trying to create a Left navigation using Partial View Macro. To do that, I need to delete Home node form result of the CurrentPage.AncestorsOrSelf();
Please let me know if anyone knows how to delete items from CurrentPage.AncestorsOrSelf()
I have written that macro using Razor, now trying to convert to the Partial View Macro. But there is no much help for Partial View Macros
Razor code
Hello,
Here is some documentation for Partial View Macros: http://our.umbraco.org/documentation/reference/templating/macros/Partial-View-Macros/
The above code uses old Razor code and is not compatible with a Partial View Macro.
Try something like this:
Jeroen
Thanks Jeroen, that worked for me ...
is working on a reply...
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.