Copied to clipboard

Flag this post as spam?

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


  • Johan Ketels 13 posts 43 karma points
    Jul 26, 2013 @ 07:57
    Johan Ketels
    0

    Access umbracoSettings from Controller?

    Is there any way for me to get to the umbraco settings?
    I'd like to access the urlReplacing properties so that I don't have to have redundant replace settings.

  • Andy Butland 422 posts 2334 karma points MVP 4x hq c-trib
    Jul 26, 2013 @ 09:43
    Andy Butland
    100

    You can access it through this:

    var chars = umbraco.UmbracoSettings.UrlReplaceCharacters;

    I don't think there's a way via the newer namespaces as the class is currently marked as internal.

Please Sign in or register to post replies

Write your reply to:

Draft