Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » 9.10.12: ColorSwatch outputs name of color instead of value when using GetString()

9.10.12: ColorSwatch outputs name of color instead of value when using GetString()

Roald Haahr
Reply

We recently upgraded a project from 9.9.5 to 9.10.12 and now colors in emails are all messed up. The reason, I discovered, is that GetString now produces the name of the color rather than the HEX code. Using GetValue will product that value. The website is running Rapido 3.4.2, so just a headsup for other Rapido users facing this problem after upgrade. One problem is the line in EmailHelpers.cshtml.

Converter.ToString(Pageview.AreaSettings.GetItem("Layout").GetItem("Emails").GetString("HeaderAndFooterFontColor")) (Will output name of the color)
Converter.ToString(Pageview.AreaSettings.GetItem("Layout").GetItem("Emails").GetValue("HeaderAndFooterFontColor")) (Will output HEX code)

Replies

 

You must be logged in to post in the forum