<?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>Freemarker Variable not working in Layouts? (7.3)</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120685033" />
  <subtitle>Freemarker Variable not working in Layouts? (7.3)</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120685033</id>
  <updated>2026-04-04T06:22:08Z</updated>
  <dc:date>2026-04-04T06:22:08Z</dc:date>
  <entry>
    <title>RE: Freemarker Variable not working in Layouts? (7.3)</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120694858" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120694858</id>
    <updated>2021-03-23T11:07:44Z</updated>
    <published>2021-03-23T11:06:25Z</published>
    <summary type="html">&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;You can get the User Object or Theme Display Object from request and
  then fetch the user full name.&lt;/p&gt;
&lt;p&gt;Ex:&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-html"&gt;${request.getAttribute(&amp;quot;USER&amp;quot;).getFullName()}&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;or&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-java"&gt;${request.getAttribute(&amp;quot;LIFERAY_SHARED_THEME_DISPLAY&amp;quot;).getUser().getFullName()}&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2021-03-23T11:06:25Z</dc:date>
  </entry>
  <entry>
    <title>Freemarker Variable not working in Layouts? (7.3)</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120685032" />
    <author>
      <name>Harry K</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120685032</id>
    <updated>2021-03-17T10:39:35Z</updated>
    <published>2021-03-16T08:09:37Z</published>
    <summary type="html">&lt;p&gt;Hola,&lt;/p&gt;
&lt;p&gt;In my 7.2 Liferay CE Portal I used ${user_last_name} in my
  Freemarker-Layouts (the Layouts you can assign to a page) - for
  example I got a welcome-Layout where the user is greeted by his full name.&lt;/p&gt;
&lt;p&gt;Now with the newest version of Liferay CE Portal I am not able to do this?&lt;/p&gt;
&lt;p&gt;Why? How can I achieve this now?&lt;/p&gt;</summary>
    <dc:creator>Harry K</dc:creator>
    <dc:date>2021-03-16T08:09:37Z</dc:date>
  </entry>
</feed>
