<?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>Get themeDisplay object from  rest module</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120027248" />
  <subtitle>Get themeDisplay object from  rest module</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120027248</id>
  <updated>2026-04-04T12:43:37Z</updated>
  <dc:date>2026-04-04T12:43:37Z</dc:date>
  <entry>
    <title>RE: Get themeDisplay object from  rest module</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120034951" />
    <author>
      <name>Nikita Laitinen</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120034951</id>
    <updated>2020-10-02T11:19:51Z</updated>
    <published>2020-10-02T11:19:51Z</published>
    <summary type="html">Good ideas!&lt;br /&gt;&lt;br /&gt;I noticed that these scripts are loaded in html -&amp;gt; common -&amp;gt; themes - &amp;gt; top_js.jsp. The start point is layout object and I thought I can use ThemeDisplay to get layout and then achieve scripts like it is described in that file&lt;br /&gt;  </summary>
    <dc:creator>Nikita Laitinen</dc:creator>
    <dc:date>2020-10-02T11:19:51Z</dc:date>
  </entry>
  <entry>
    <title>RE: Get themeDisplay object from  rest module</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120034253" />
    <author>
      <name>Nikita Laitinen</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120034253</id>
    <updated>2020-10-02T11:12:38Z</updated>
    <published>2020-10-02T11:12:38Z</published>
    <summary type="html">the reason is following&lt;br /&gt;User click on a button on the website and I want to get some script from Configuration -&amp;gt; site settings -&amp;gt;  Advanced -&amp;gt; Analytics section and paste it in the header section of HTML&lt;br /&gt; </summary>
    <dc:creator>Nikita Laitinen</dc:creator>
    <dc:date>2020-10-02T11:12:38Z</dc:date>
  </entry>
  <entry>
    <title>RE: Get themeDisplay object from  rest module</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120028353" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120028353</id>
    <updated>2020-09-30T10:43:21Z</updated>
    <published>2020-09-30T10:43:21Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Nikita Laitinen:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;I have a problem with getting themeDisplay object from rest liferay module.&lt;br /&gt;...&lt;br /&gt;I need it to get analyticsScripts from the Configuration -&amp;gt; site settings -&amp;gt;  Advanced -&amp;gt; Analytics section. Get them all and return them as a response of rest call.&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;There&amp;#39;s your actual question: You need the configuration values, not the ThemeDisplay. &lt;br /&gt;I&amp;#39;d check the module that holds this configuration, see what&amp;#39;s exported and what API is available. &lt;br /&gt;You can either load the same configuration if everything is exported (e.g. by referencing it with the name it&amp;#39;s registered) or access the API to query for the values you need.&lt;br /&gt;ThemeDisplay is a concept for &lt;em&gt;pages&lt;/em&gt; served by Liferay - and a REST call is not for a page, has no theme, etc - thus the subject clearly points to a &lt;a href="http://xyproblem.info/"&gt;XY-Problem&lt;/a&gt; that you shouldn&amp;#39;t persue any longer.</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2020-09-30T10:43:21Z</dc:date>
  </entry>
  <entry>
    <title>RE: Get themeDisplay object from  rest module</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120028000" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120028000</id>
    <updated>2020-09-30T10:25:47Z</updated>
    <published>2020-09-30T10:25:47Z</published>
    <summary type="html">Hi,&lt;br /&gt;Can you pls let us know the reason for themeDisplay Object in Rest ? , Also if your looking for User or Request related objects you can check out the below link it might help you &lt;br /&gt;&lt;a href="https://liferay.dev/blogs/-/blogs/rest-custom-context-providers"&gt;https://liferay.dev/blogs/-/blogs/rest-custom-context-providers&lt;/a&gt;</summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2020-09-30T10:25:47Z</dc:date>
  </entry>
  <entry>
    <title>Get themeDisplay object from  rest module</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120027247" />
    <author>
      <name>Nikita Laitinen</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120027247</id>
    <updated>2020-09-30T08:50:26Z</updated>
    <published>2020-09-30T08:50:26Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hello! Could you help me please&lt;br&gt;I have a problem with getting themeDisplay object from rest liferay module.&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;@GET&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;@Path("/evening")&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;@Produces("text/plain")&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;public String helloevening() {&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;// Here I need to get themeDisplay object&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;return "Good evening!";&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;}

&lt;/code&gt;&lt;/pre&gt;I need it to&amp;nbsp;get&amp;nbsp;analyticsScripts from the Configuration -&amp;gt; site settings -&amp;gt;&amp;nbsp; Advanced -&amp;gt; Analytics section. Get them all&amp;nbsp;and return them as a response of rest call.&lt;br&gt;Any ideas?&lt;br&gt;​​​​​​​&lt;br&gt;Thank you!&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Nikita Laitinen</dc:creator>
    <dc:date>2020-09-30T08:50:26Z</dc:date>
  </entry>
</feed>
