I have code from umbraco 4.7.2 that accesses UmbracoContext-for 3 different purposes:
1) UmbracoContext.Current.Server.MapPath(...)
2) UmbracoContext.Current.Server.ContentXmlPath
3) UmbracoContext.Current.NewSchemaMode
All 3 trigger obsolete warning in umbraco 6.1.6. Looking at the purpose of the calls above (MapPath, ContentXmlPath, and NewSchemaMode), does anyone know for any of these 3 how to access the same functionality in 6.1.6?
I can take the first one and switch it to Umbraco.Core.IO.IOHelper.MapPath, I think, but what about the next one?
Can I use Umbraco.Core.IO.IOHelper.ResolveUrl(Umbraco.Core.IO.SystemFiles.ContentCacheXml)?????
accessing UmbracoContext
I have code from umbraco 4.7.2 that accesses UmbracoContext-for 3 different purposes:
1) UmbracoContext.Current.Server.MapPath(...)
2) UmbracoContext.Current.Server.ContentXmlPath
3) UmbracoContext.Current.NewSchemaMode
All 3 trigger obsolete warning in umbraco 6.1.6. Looking at the purpose of the calls above (MapPath, ContentXmlPath, and NewSchemaMode), does anyone know for any of these 3 how to access the same functionality in 6.1.6?
I can take the first one and switch it to Umbraco.Core.IO.IOHelper.MapPath, I think, but what about the next one?
Can I use Umbraco.Core.IO.IOHelper.ResolveUrl(Umbraco.Core.IO.SystemFiles.ContentCacheXml)?????
is working on a reply...