RE: How to get theme preferences and use them in a layout? Liferay 7.2

Sergey Popov, modified 6 Years ago. New Member Posts: 6 Join Date: 9/2/19 Recent Posts

Hi,
I´m trying to get theme preferences in a layout but I get this error when I´m deploying the layout :  The following has evaluated to null or missing.
I can use theme preferences perfectly in templates. This is how I get values in a template:
<#assign themePreference = getterUtil.getString(themeDisplay.getThemeSetting("themePreference"))/>I´m trying to do same way in a layout but it doesn´t work. In any case I can´t use variables from templates in layouts.Thank you.
Amos Fong, modified 5 Years ago. Junior Member Posts: 44 Join Date: 12/18/19 Recent Posts
Hi!
​​​​​​​Have you found a solution???