Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • charlie black 33 posts 106 karma points
    Apr 14, 2014 @ 18:28
    charlie black
    0

    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)?????

     

     

     

     

     

Please Sign in or register to post replies

Write your reply to:

Draft