<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>How to get theme preferences and use them in a layout? Liferay 7.2</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=115058409" />
  <subtitle>How to get theme preferences and use them in a layout? Liferay 7.2</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=115058409</id>
  <updated>2026-04-06T17:08:46Z</updated>
  <dc:date>2026-04-06T17:08:46Z</dc:date>
  <entry>
    <title>RE: How to get theme preferences and use them in a layout? Liferay 7.2</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118113739" />
    <author>
      <name>Nikita Laitinen</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118113739</id>
    <updated>2019-12-18T14:02:40Z</updated>
    <published>2019-12-18T14:02:40Z</published>
    <summary type="html">Hi!&lt;br /&gt;​​​​​​​Have you found a solution???</summary>
    <dc:creator>Nikita Laitinen</dc:creator>
    <dc:date>2019-12-18T14:02:40Z</dc:date>
  </entry>
  <entry>
    <title>How to get theme preferences and use them in a layout? Liferay 7.2</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115058408" />
    <author>
      <name>Sergey Popov</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115058408</id>
    <updated>2019-09-02T07:33:14Z</updated>
    <published>2019-09-02T07:33:14Z</published>
    <summary type="html">&lt;span style="font-size: 16px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 16px;"&gt;Hi,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 16px;"&gt;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.&lt;/span&gt;&lt;br /&gt;I can use theme preferences perfectly in templates. This is how I get values in a template:&lt;br /&gt; &amp;lt;#assign themePreference = getterUtil.getString(themeDisplay.getThemeSetting(&amp;#34;themePreference&amp;#34;))/&amp;gt;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.</summary>
    <dc:creator>Sergey Popov</dc:creator>
    <dc:date>2019-09-02T07:33:14Z</dc:date>
  </entry>
</feed>
