I am creating a site and using some templates/setup from another site in my company.
That umbraco site is using 4.x (not sure which one, I don't have access to thier site). They sent me some templates they are using and I'm trying to see how thier stuff is working by creating my own umbraco instance with the templates. I am using 6.1.6.
They have this, and it works on thier site (on 4.x)
Your issue is that Umbraco v6 comes with Razor v2 while Umbraco v4 has Razor v1, the main difference is that Razor v2 will not allow the use of @ within a code block.
macro scripts work in 4.x but not in 6.1.6
I am creating a site and using some templates/setup from another site in my company.
That umbraco site is using 4.x (not sure which one, I don't have access to thier site). They sent me some templates they are using and I'm trying to see how thier stuff is working by creating my own umbraco instance with the templates. I am using 6.1.6.
They have this, and it works on thier site (on 4.x)
but for me (on 6.1.6) that is throwing errors. I had to change it to this to get it to work
The error I get is basically : error CS1002: ; expected and looks like the GetPropertyValue is what is causing it (just a guess on that)
Any ideas why that is?
Hi Karen,
Your issue is that Umbraco v6 comes with Razor v2 while Umbraco v4 has Razor v1, the main difference is that Razor v2 will not allow the use of @ within a code block.
So while you had this in v4
You need to change it to this for v6
Jeavon
Thank you Jeavon!
is working on a reply...