Copied to clipboard

Flag this post as spam?

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


  • Eli 15 posts 95 karma points
    Jan 09, 2019 @ 07:08
    Eli
    0

    Access .NET Properties.Settings in Umbraco HTML

    Hi,

    I am new to Umbraco and looking for accessing my settings file (in the template file), which is usually done by Properties.Settings.Default...

    Can't manage to make this happen.

    Cheers

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Jan 09, 2019 @ 09:27
    Alex Skrypnyk
    0

    Hi Eli

    What setting file did you mean? AppSettings? You can get settings by

    string value = System.Configuration.ConfigurationManager.AppSettings[key];
    

    Alex

  • Eli 15 posts 95 karma points
    Jan 22, 2019 @ 03:00
    Eli
    0

    Hi Alex, Thanks. But how can I add some properties to the Umbraco Web.Config file? How can I be sure these properties will be overridden some time? Its an Umbraco file, and I want to add properties on top of it.

    Thanks.

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Jan 22, 2019 @ 09:11
    Alex Skrypnyk
    0

    Hi Eli

    What Umbraco config file are you talking about?

    Alex

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Jan 30, 2019 @ 08:22
    Alex Skrypnyk
    0

    Hi Eli

    Did you solve the issue?

    Alex

  • Eli 15 posts 95 karma points
    Jan 30, 2019 @ 22:43
    Eli
    0

    Hi Alex, No, still looking for a way to add properties on top of the Umbraco ones. For now I just added more to the configuration file, but I am afraid these could be overriden in some point.

Please Sign in or register to post replies

Write your reply to:

Draft