Developer forum

Forum » Development » GlobalSettings

GlobalSettings


Reply

I tryed 3 diferent ways to read settings but unfortunely it always returns an empty string.


Dynamicweb.Base.GetGs("Email")
Dynamicweb.

<

Base.GetGs("Settings.CommonInformation.Email" Dynamicweb.Base.GetGs("Settings/CommonInformation/Email")

What's wrong?


The GlobalSettings.

Globalsettings>

 

<Settings>

 

<CommonInformation>

 

<SolutionTitle>Dynamicweb.NET</SolutionTitle>

 

<Partner>Dynamicweb Software A/S</Partner>

 




And how can I save the settings of my costume modules into GlobalSettings?


<Email>noreply@dynamicweb.dk</Email>

Replies

 
Nicolai Høeg Pedersen
Reply
Getting the value
Base.GetGs("/Globalsettings/Settings/CommonInformation/Email")

Setting the value
Base.SetGs("/Globalsettings/Settings/CommonInformation/Email", "New value")
 
Reply

It works!

Thanks!

 

You must be logged in to post in the forum