<?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>Delete personal information in results of SearchResultsPortlet</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120560310" />
  <subtitle>Delete personal information in results of SearchResultsPortlet</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120560310</id>
  <updated>2026-04-03T20:55:39Z</updated>
  <dc:date>2026-04-03T20:55:39Z</dc:date>
  <entry>
    <title>RE: Delete personal information in results of SearchResultsPortlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120562994" />
    <author>
      <name>Russell Bohl</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120562994</id>
    <updated>2021-01-26T16:01:53Z</updated>
    <published>2021-01-26T16:01:16Z</published>
    <summary type="html">&lt;p&gt;
  &lt;strong&gt;If you are on 7.3&lt;/strong&gt; you can do what you want with a &lt;a
    href="https://learn.liferay.com/dxp/7.x/en/site-building/displaying-content/customizing-widgets/styling-widgets-with-widget-templates.html"&gt;Widget
  Template.&lt;/a&gt; I was able to remove the User Portrait very easily just
  now, by&lt;/p&gt;
&lt;p&gt;1. Copy the existing &amp;quot;List Template&amp;quot; src code. &lt;a
    href="https://github.com/liferay/liferay-portal/blob/master/modules/apps/portal-search/portal-search-web/src/main/resources/com/liferay/portal/search/web/internal/search/results/web/portlet/template/dependencies/portlet_display_template_list.ftl"&gt;GiHub src&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;2. Add a new Widget Template targeted at the Search Results widget,
  and copy in the src from the original&lt;/p&gt;
&lt;p&gt;3. Remove this block near the beginning of the template&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-java"&gt;&amp;lt;div class=&amp;quot;autofit-col&amp;quot;&amp;gt;
	&amp;lt;#if entry.isUserPortraitVisible()&amp;gt;
		&amp;lt;@liferay_ui[&amp;quot;user-portrait&amp;quot;] userId=entry.getAssetEntryUserId() /&amp;gt;
	&amp;lt;/#if&amp;gt;

	&amp;lt;#if entry.isThumbnailVisible()&amp;gt;
		&amp;lt;img alt=&amp;quot;${languageUtil.get(locale, &amp;quot;thumbnail&amp;quot;)}&amp;quot; class=&amp;quot;rounded search-result-thumbnail-img&amp;quot; src=&amp;quot;${entry.getThumbnailURLString()}&amp;quot; /&amp;gt;
	&amp;lt;/#if&amp;gt;

	&amp;lt;#if entry.isIconVisible()&amp;gt;
		&amp;lt;span class=&amp;quot;search-asset-type-sticker sticker sticker-rounded sticker-secondary sticker-static&amp;quot;&amp;gt;
			&amp;lt;@clay.icon symbol=&amp;quot;${entry.getIconId()}&amp;quot; /&amp;gt;
		&amp;lt;/span&amp;gt;
	&amp;lt;/#if&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;4. Go to the &lt;a
    href="https://learn.liferay.com/dxp/7.x/en/using-search/search-pages-and-widgets/search-results/configuring-the-search-results-widget.html"&gt;Search
    Results widget configuration &lt;/a&gt;and change the Display Template to
  use your customized template.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;If you're on an earlier version, the only way I know of getting at
  the result summaries are by overriding the summary building logic via
  IndexerPostProcessor or ModelSuymmaryContributor, depending on whether
  the model uses the old &lt;a
    href="https://help.liferay.com/hc/en-us/articles/360032260612-Model-Entity-Indexing-Framework"&gt;inheritance-based
    indexer architecture or the newer composite indexer&lt;/a&gt;&lt;/p&gt;</summary>
    <dc:creator>Russell Bohl</dc:creator>
    <dc:date>2021-01-26T16:01:16Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: Delete personal information in results of SearchResultsPortlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120562955" />
    <author>
      <name>Russell Bohl</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120562955</id>
    <updated>2021-01-26T15:06:05Z</updated>
    <published>2021-01-26T15:06:05Z</published>
    <summary type="html">&lt;p&gt;Hi there. No, you can't really configure a Display Context in
  Liferay. It's even not extnesible or overridable via a module using
  supported techniques.  I'm going to write a reply in a few minutes
  that I hope can guide you to a couple possible solutions.&lt;/p&gt;</summary>
    <dc:creator>Russell Bohl</dc:creator>
    <dc:date>2021-01-26T15:06:05Z</dc:date>
  </entry>
  <entry>
    <title>RE: Delete personal information in results of SearchResultsPortlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120561357" />
    <author>
      <name>Iñigo Boyano</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120561357</id>
    <updated>2021-01-26T10:54:07Z</updated>
    <published>2021-01-26T10:51:42Z</published>
    <summary type="html">&lt;p&gt;I've seen that all this options are setted in searchResultSummaryDisplayContext.&lt;/p&gt;
&lt;p&gt;Is that context configurable by liferay administration?&lt;/p&gt;</summary>
    <dc:creator>Iñigo Boyano</dc:creator>
    <dc:date>2021-01-26T10:51:42Z</dc:date>
  </entry>
  <entry>
    <title>Delete personal information in results of SearchResultsPortlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120560309" />
    <author>
      <name>Iñigo Boyano</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120560309</id>
    <updated>2021-01-25T11:59:49Z</updated>
    <published>2021-01-25T11:59:49Z</published>
    <summary type="html">&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;I want to filter the personal information that is shown in each
  results in SearchResultsPortlet.&lt;/p&gt;
&lt;p&gt;By defautl, the portlet shown:&lt;/p&gt;
&lt;p&gt;An icon of the user image, type of content, author's name...&lt;/p&gt;
&lt;p&gt;I want to hide this information of the results and i don´t see if
  it's something configurable, like an ADT, preferences, system
  settings, properties or by other hand is needed to develop a fragment
  to rewrite this results view.&lt;/p&gt;
&lt;p&gt;I attach an image by example&lt;/p&gt;
&lt;p&gt;
  &lt;img src="/documents/14/0/2021-01-25+12_56_18-B%C3%BAsqueda+-+Pagaj.png/7b9dcdcb-dcb2-946c-ff54-98e83cb18839?t=1611575983011&amp;amp;imagePreview=1" /&gt;&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;</summary>
    <dc:creator>Iñigo Boyano</dc:creator>
    <dc:date>2021-01-25T11:59:49Z</dc:date>
  </entry>
</feed>
