<?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>Portlet title and border still shows on Freemarker based custom theme</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=73030144" />
  <subtitle>Portlet title and border still shows on Freemarker based custom theme</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=73030144</id>
  <updated>2026-04-03T19:33:45Z</updated>
  <dc:date>2026-04-03T19:33:45Z</dc:date>
  <entry>
    <title>RE: Portlet title and border still shows on Freemarker based custom theme</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110813358" />
    <author>
      <name>Michael Adamczyk</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110813358</id>
    <updated>2018-08-27T11:05:32Z</updated>
    <published>2018-08-27T11:05:32Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;blockquote&gt;
  &lt;div class="quote-title"&gt;Stephen Hardesty:&lt;/div&gt;
  &lt;div class="quote"&gt;
    &lt;div class="quote-content"&gt;&amp;nbsp;I haven't been able to get the same
      thing to work in my application display template. It seems you
      should be able to because when you enter the edit screen for an
      ADT you have the option of adding ${portletPreferences} from the
      "general variables" section on the left. I have been
      able to loop through the ${portletPreferences} hash and display
      the key name, but so far have been unable to output the key
      values. I think this is probably just me fumbling with the syntax
      and should be easy to do?...&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In an ADT in 6.2 and 7.0 you can use:&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;&amp;amp;lt;#assign portletCustomTitle = themeDisplay.getPortletDisplay().getTitle() /&amp;amp;gt;
${portletCustomTitle}
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Michael Adamczyk</dc:creator>
    <dc:date>2018-08-27T11:05:32Z</dc:date>
  </entry>
  <entry>
    <title>RE: Portlet title and border still shows on Freemarker based custom theme</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=75389036" />
    <author>
      <name>Stephen Hardesty</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=75389036</id>
    <updated>2016-06-16T12:57:20Z</updated>
    <published>2016-06-16T12:57:20Z</published>
    <summary type="html">Dave and anyone who wants to optionally display portlet titles,&lt;br /&gt;I accessed it from the portlet.ftl like this -&lt;br /&gt;&amp;lt;#assign portlet_display = portletDisplay&amp;gt;&lt;br /&gt;&amp;lt;#assign portlet_title = htmlUtil.escape(portlet_display.getTitle())&amp;gt;&lt;br /&gt;&amp;lt;#assign portlet_setup = portlet_display.getPortletSetup()&amp;gt;&lt;br /&gt;&amp;lt;#assign portlet_show_title = portlet_setup.getValue(&amp;#34;portletSetupUseCustomTitle&amp;#34;,&amp;#34;Boolean&amp;#34;)&amp;gt;&lt;br /&gt;&lt;br /&gt;Then I can show or not show the portlet title based on it&amp;#39;s value -&lt;br /&gt;                &amp;lt;#if portlet_show_title == &amp;#39;true&amp;#39;&amp;gt;&lt;br /&gt;			&amp;lt;h2 class=&amp;#34;portlet-title-text&amp;#34;&amp;gt;${portlet_title}&amp;lt;/h2&amp;gt;&lt;br /&gt;		&amp;lt;/#if&amp;gt;&lt;br /&gt;&lt;br /&gt;I haven&amp;#39;t been able to get the same thing to work in my application display template. It seems you should be able to because when you enter the edit screen for an ADT you have the option of adding ${portletPreferences} from the &amp;#34;general variables&amp;#34; section on the left. I have been able to loop through the ${portletPreferences} hash and display the key name, but so far have been unable to output the key values. I think this is probably just me fumbling with the syntax and should be easy to do?...</summary>
    <dc:creator>Stephen Hardesty</dc:creator>
    <dc:date>2016-06-16T12:57:20Z</dc:date>
  </entry>
  <entry>
    <title>RE: Portlet title and border still shows on Freemarker based custom theme</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=75373287" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=75373287</id>
    <updated>2016-06-16T03:06:45Z</updated>
    <published>2016-06-16T03:06:45Z</published>
    <summary type="html">It&amp;#39;s a portlet pref (well not really a pref, but kinda a pref I guess), I don&amp;#39;t know if the ADT can access portlet prefs or not but I&amp;#39;ve never tried it myself.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2016-06-16T03:06:45Z</dc:date>
  </entry>
  <entry>
    <title>RE: Portlet title and border still shows on Freemarker based custom theme</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=75357813" />
    <author>
      <name>Stephen Hardesty</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=75357813</id>
    <updated>2016-06-15T19:29:39Z</updated>
    <published>2016-06-15T19:29:39Z</published>
    <summary type="html">Thank you so much Dave. That worked in the portlet.ftl. Now I&amp;#39;m trying to move that into an application display template. It still outputs &amp;#34;Asset Publisher&amp;#34; though even though I switched to portlet_title there as well. Why would it work on the portlet.ftl and not in the Application display template .ftl?&lt;br /&gt;&lt;br /&gt;Also, how can I access this attribute for a given asset publisher instance - portletSetupUseCustomTitle ?</summary>
    <dc:creator>Stephen Hardesty</dc:creator>
    <dc:date>2016-06-15T19:29:39Z</dc:date>
  </entry>
  <entry>
    <title>RE: Portlet title and border still shows on Freemarker based custom theme</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=75358656" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=75358656</id>
    <updated>2016-06-15T19:22:53Z</updated>
    <published>2016-06-15T19:22:53Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;The standard portlet.ftl uses the following:&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;&amp;amp;lt;#assign portlet_title = htmlUtil.escape(portlet_display.getTitle()) /&amp;amp;gt;
...
&amp;lt;h1 class="portlet-title"&amp;gt;
    ${theme.portletIconPortlet()} &amp;lt;span class="portlet-title-text"&amp;gt;${portlet_title}&amp;lt;/span&amp;gt;
&amp;lt;/h1&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;So title doesn't come from the display name, it comes from the title.  My guess is that the portletDisplay object has the logic to return the correct title where the display name just does the display name.&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2016-06-15T19:22:53Z</dc:date>
  </entry>
  <entry>
    <title>RE: Portlet title and border still shows on Freemarker based custom theme</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=75357332" />
    <author>
      <name>Stephen Hardesty</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=75357332</id>
    <updated>2016-06-15T18:27:01Z</updated>
    <published>2016-06-15T18:27:01Z</published>
    <summary type="html">I am using portlet.ftl in my theme I have the portlet display name being output there. &lt;br /&gt;The portlet titles maintain their generic names instead of the custom title entered in the look and feel options i.e. &amp;#34;Asset Publisher&amp;#34; instead of &amp;#34;Custom Title I just typed in&amp;#34;. I&amp;#39;ve been struggling with this longer than I care to admit. What is going wrong here?&lt;br /&gt;&lt;br /&gt;This is going on on the top of the .ftl&lt;br /&gt;&lt;br /&gt;&amp;lt;#assign portlet_display = portletDisplay /&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;#assign portlet_back_url = htmlUtil.escapeHREF(portlet_display.getURLBack()) /&amp;gt;&lt;br /&gt;&amp;lt;#assign portlet_display_name = htmlUtil.escape(portlet_display.getPortletDisplayName()) /&amp;gt;&lt;br /&gt;&amp;lt;#assign portlet_display_root_portlet_id = htmlUtil.escape(portlet_display.getRootPortletId()) /&amp;gt;&lt;br /&gt;&amp;lt;#assign portlet_id = htmlUtil.escapeAttribute(portlet_display.getId()) /&amp;gt;&lt;br /&gt;&amp;lt;#assign portlet_toolbar = portlet_display.getPortletToolbar() /&amp;gt;&lt;br /&gt;&lt;br /&gt;and this is outputting the actual title &lt;br /&gt;&lt;br /&gt;&amp;lt;h2&amp;gt;${portlet_display_name}&amp;lt;/h2&amp;gt;</summary>
    <dc:creator>Stephen Hardesty</dc:creator>
    <dc:date>2016-06-15T18:27:01Z</dc:date>
  </entry>
  <entry>
    <title>RE: Portlet title and border still shows on Freemarker based custom theme</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=73122135" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=73122135</id>
    <updated>2016-04-15T18:36:33Z</updated>
    <published>2016-04-15T18:36:33Z</published>
    <summary type="html">Well the include is probably pulling in the output from the top_head_include jsp file which probably pulls in some js, css and meta resources.&lt;br /&gt;&lt;br /&gt;The nav_menu guy would be doing your standard navigation menu but shouldn&amp;#39;t be including js resources.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2016-04-15T18:36:33Z</dc:date>
  </entry>
  <entry>
    <title>RE: Portlet title and border still shows on Freemarker based custom theme</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=73112185" />
    <author>
      <name>Darth Lord</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=73112185</id>
    <updated>2016-04-15T15:12:24Z</updated>
    <published>2016-04-15T15:12:24Z</published>
    <summary type="html">Thanks David - this was very helpful. &lt;br /&gt;&lt;br /&gt;I am still having issues with the Freemarker macros such as the following:&lt;br /&gt;&lt;br /&gt;&amp;lt;@liferay_util[&amp;#34;include&amp;#34;] page=top_head_include /&amp;gt;&lt;br /&gt;&amp;lt;@liferay.navigation_menu default_preferences=&amp;#34;${freeMarkerPortletPreferences}&amp;#34; /&amp;gt;&lt;br /&gt;&lt;br /&gt;Where are they defined and how to modify their outputs? As I mentioned in previous post, I am experiencing some Javascript issues such &lt;em&gt;&amp;#34;You have included  XX Javascript library multiple times on this page&lt;/em&gt; This is causing issues with as example the login portlet.&lt;br /&gt;&lt;br /&gt;Thanks in advance.</summary>
    <dc:creator>Darth Lord</dc:creator>
    <dc:date>2016-04-15T15:12:24Z</dc:date>
  </entry>
  <entry>
    <title>RE: Portlet title and border still shows on Freemarker based custom theme</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=73044233" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=73044233</id>
    <updated>2016-04-14T14:08:40Z</updated>
    <published>2016-04-14T14:08:40Z</published>
    <summary type="html">Portlet frame is managed by the portlet.ftl template file.  You can find this in the classic theme template directory right next to portal_normal.ftl.&lt;br /&gt;&lt;br /&gt;It&amp;#39;s a small file and you can see where you&amp;#39;d want to remove the header.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2016-04-14T14:08:40Z</dc:date>
  </entry>
  <entry>
    <title>Portlet title and border still shows on Freemarker based custom theme</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=73030143" />
    <author>
      <name>Darth Lord</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=73030143</id>
    <updated>2016-04-14T09:47:17Z</updated>
    <published>2016-04-14T09:47:17Z</published>
    <summary type="html">Hi all,&lt;br /&gt;&lt;br /&gt;I&amp;#39;m really stuck on this and run out of possible ideas. &lt;br /&gt;&lt;br /&gt;I am building a custom theme, porting a bootstrap 3.1 HTML design to Liferay using Freemarker template. I manage to port the design to Freemarker but I when the theme is deployed, the portlet titles are displayed (see attached screenshots). I&amp;#39;m supecting that there&amp;#39;s must be a Javascript error or clash somewhere which preventing Liferay from hiding the portlet titles. I tried disabling it from the look and feel menu option of the portlet but there&amp;#39;s no value in the dropdown.&lt;br /&gt;&lt;br /&gt;I have attached the portal_normal template file hoping that someone can point out to something that I am doing wrong. The CSS for the custom template is displaying fine. Also forgot to mention that I am new to Freemarker templating.&lt;br /&gt;&lt;br /&gt;Thank for your help in advance.&lt;br /&gt;&lt;br /&gt;My environment:&lt;br /&gt;- OS: MacOS El Capitain&lt;br /&gt;- IDE: Netbeans with Maven&lt;br /&gt;- Liferay 7.0 GA1 (Tomcat bundle)&lt;br /&gt;- Theme deployed as WAR (copied the theme folders from the Classic theme deployed in Liferay 7 OSGI)</summary>
    <dc:creator>Darth Lord</dc:creator>
    <dc:date>2016-04-14T09:47:17Z</dc:date>
  </entry>
</feed>
