I am currently beginning a project to develop a new website within Umbraco. Do any of you have any technical advice on things to avoid / implement in preparation for V8. We will be building on V7.12.4 but we want to make sure we don't implement something that will be obselete in V8 as we would want to upgrade soon after V8 release.
Avoid dynamics. Umbraco 8 will just have something like Model.Value<>() to get a property value. Will also have Models Builder (which internally will just call Model.Value<>()). So when you upgrade, you'll have to change your calls to Model.GetPropertyValue<>() to Model.Value<>().
Avoid XPATH
Also, avoid XSLT/XPATH (when trying to fetch content nodes). It's fast now, but in Umbraco 8 they have a shim that'll make it work (at least XPATH), but it'll be slower. Because of the different cache technology, C#/LINQ will be faster in Umbraco 8.
The HQ answer for this is still: you won't be able to upgrade to v8, but there will be a migration path eventually. Build your sites in v7 now and when v8 is actually released, evaluate if it makes sense for you to migrate.
The advise from Nicholas is fine as well, but that's general v7 advise anyway. ;-)
Preparing for V8
Hi,
I am currently beginning a project to develop a new website within Umbraco. Do any of you have any technical advice on things to avoid / implement in preparation for V8. We will be building on V7.12.4 but we want to make sure we don't implement something that will be obselete in V8 as we would want to upgrade soon after V8 release.
Any advice would be really helpful.
Kind Regards,
Gary Henshall
Avoid Dynamics
Avoid dynamics. Umbraco 8 will just have something like
Model.Value<>()
to get a property value. Will also have Models Builder (which internally will just callModel.Value<>()
). So when you upgrade, you'll have to change your calls toModel.GetPropertyValue<>()
toModel.Value<>()
.Avoid XPATH
Also, avoid XSLT/XPATH (when trying to fetch content nodes). It's fast now, but in Umbraco 8 they have a shim that'll make it work (at least XPATH), but it'll be slower. Because of the different cache technology, C#/LINQ will be faster in Umbraco 8.
The HQ answer for this is still: you won't be able to upgrade to v8, but there will be a migration path eventually. Build your sites in v7 now and when v8 is actually released, evaluate if it makes sense for you to migrate.
The advise from Nicholas is fine as well, but that's general v7 advise anyway. ;-)
is working on a reply...