Hello I am getting this error when loading my navigation script. Error loading Partial View script. Bellow is the script I an using. I do think it has something to do with using NodeByID but I am not sure and did not build the site original. I have copied the site from a very old umbraco version to a new version with win host and this seem to be my only hang up any help is appreciated.
Thanks,
Tommy
If you are using Umbraco 7 you will have to make some changes to the code to get it work. Instead of @Model, you will need to use @CurrentPage, since you are using the dynamic Razor syntax.
Error loading Partial View script
Hello I am getting this error when loading my navigation script. Error loading Partial View script. Bellow is the script I an using. I do think it has something to do with using NodeByID but I am not sure and did not build the site original. I have copied the site from a very old umbraco version to a new version with win host and this seem to be my only hang up any help is appreciated. Thanks, Tommy
Hi Tom,
If you are using Umbraco 7 you will have to make some changes to the code to get it work. Instead of @Model, you will need to use @CurrentPage, since you are using the dynamic Razor syntax.
Another thing you need to change is the Model.NodeById, in Umbraco 7, it becomes Umbraco.Content(1137) https://our.umbraco.org/documentation/Reference/Templating/Mvc/views and https://our.umbraco.org/documentation/Reference/Querying/UmbracoHelper/
I have updated your code, so try this code below.
Hope this helps,
/Dennis
is working on a reply...