<?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>show a content's breadcrumb navigation in the search result</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120548909" />
  <subtitle>show a content's breadcrumb navigation in the search result</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120548909</id>
  <updated>2026-06-07T17:50:22Z</updated>
  <dc:date>2026-06-07T17:50:22Z</dc:date>
  <entry>
    <title>RE: RE: show a content's breadcrumb navigation in the search result</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121404779" />
    <author>
      <name>Henri Tanskanen</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121404779</id>
    <updated>2022-04-22T14:13:04Z</updated>
    <published>2022-04-22T07:14:19Z</published>
    <summary type="html">&lt;p&gt;Hi Dominik,&lt;/p&gt;
&lt;p&gt;I need to do similar solution. Could you please give an example how
  to create documents path breadcrumb using ADTs in Liferay 7.3, thanks&lt;/p&gt;</summary>
    <dc:creator>Henri Tanskanen</dc:creator>
    <dc:date>2022-04-22T07:14:19Z</dc:date>
  </entry>
  <entry>
    <title>RE: show a content's breadcrumb navigation in the search result</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120646908" />
    <author>
      <name>Gopal Prasad Satapathy</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120646908</id>
    <updated>2021-02-23T07:11:56Z</updated>
    <published>2021-02-23T07:11:45Z</published>
    <summary type="html">&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Was able to do it&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;pre&gt;&lt;code class="language-java"&gt;long groupId=Long.parseLong(document.getField(&amp;quot;groupId&amp;quot;).getValue()); 
                                    
                                    String uid=document.getField(&amp;quot;uid&amp;quot;).getValue();
                                    
                                    String articleId=document.getField(&amp;quot;articleId_String_sortable&amp;quot;).getValue();
                                    List&amp;lt;Long&amp;gt; layoutIds = JournalContentSearchLocalServiceUtil.getLayoutIds(groupId, true, articleId);
                                    long layoutId = 0;
                                    if (!layoutIds.isEmpty()) {
                                          layoutId = layoutIds.get(0).longValue();
                 
                                          Layout layout = LayoutLocalServiceUtil.getLayout(groupId, true, layoutId);
                                          List&amp;lt;Layout&amp;gt; listLayoutAs=layout.getAncestors();
                                          String langIddd=LanguageUtil.getLanguageId(request);                                                                                                                     breadcrmFrmLayout=GroupLocalServiceUtil.getGroup(groupId).getDescriptiveName();    
                                          Collections.reverse(listLayoutAs); 
                                         for(Layout lt:listLayoutAs){
                                            lt.getHTMLTitle(langIddd);
                                            breadcrmFrmLayout = breadcrmFrmLayout + &amp;quot;  &amp;quot; + lt.getHTMLTitle(langIddd);
                                                        }
                                          breadcrmFrmLayout=breadcrmFrmLayout+&amp;quot;  &amp;quot;+layout.getHTMLTitle(langIddd);                
                                          }&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Gopal Prasad Satapathy</dc:creator>
    <dc:date>2021-02-23T07:11:45Z</dc:date>
  </entry>
  <entry>
    <title>RE: show a content's breadcrumb navigation in the search result</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120621799" />
    <author>
      <name>Dominik Marks</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120621799</id>
    <updated>2021-02-18T08:51:41Z</updated>
    <published>2021-02-18T08:51:41Z</published>
    <summary type="html">&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I did it once using an application display template for the search
  results portlet. However as far as I know ADTs for search results are
  available in Liferay 7.3, only.&lt;/p&gt;
&lt;p&gt;So in Liferay 7.1 you would have to do it in an JSP hook for the
  search results portlet.&lt;/p&gt;
&lt;p&gt;If you are taking about Web Contents in the search results those may
  have an display page (layoutUuid). Based on that you can determine the
  Layout and based on that you can iterate through all parent Layouts to
  construct a breadcrumb. &lt;/p&gt;</summary>
    <dc:creator>Dominik Marks</dc:creator>
    <dc:date>2021-02-18T08:51:41Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: show a content's breadcrumb navigation in the search result</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120621722" />
    <author>
      <name>Gopal Prasad Satapathy</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120621722</id>
    <updated>2021-02-18T06:49:47Z</updated>
    <published>2021-02-18T06:49:47Z</published>
    <summary type="html">&lt;p&gt;Hello Dominik,&lt;/p&gt;
&lt;p&gt;Please let me know if you have any thoughts on achieving this?&lt;/p&gt;
&lt;p&gt;I have created a search-web-fragment from Fragment-Host:
  com.liferay.portal.search.web and in the JSP have aceess
  to &lt;strong&gt;com.liferay.portal.search.web.internal.result.display.context.SearchResultSummaryDisplayContext&lt;/strong&gt;
  &amp;amp; &lt;strong&gt;com.liferay.portal.kernel.search.Document&lt;/strong&gt;. But
  not sure how to proceed from there.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</summary>
    <dc:creator>Gopal Prasad Satapathy</dc:creator>
    <dc:date>2021-02-18T06:49:47Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: show a content's breadcrumb navigation in the search result</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120613877" />
    <author>
      <name>Gopal Prasad Satapathy</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120613877</id>
    <updated>2021-02-15T16:01:29Z</updated>
    <published>2021-02-15T16:01:29Z</published>
    <summary type="html">&lt;p&gt;Hello Dominik,&lt;/p&gt;
&lt;p&gt;Thanks for your reply. Breadcrumb should be the page hierarchy where
  the content is placed and in case of multiple pages any of the page
  will be fine.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Any pointer on how to achieve this would be of great help.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</summary>
    <dc:creator>Gopal Prasad Satapathy</dc:creator>
    <dc:date>2021-02-15T16:01:29Z</dc:date>
  </entry>
  <entry>
    <title>RE: show a content's breadcrumb navigation in the search result</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120613852" />
    <author>
      <name>Dominik Marks</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120613852</id>
    <updated>2021-02-15T15:42:48Z</updated>
    <published>2021-02-15T15:42:48Z</published>
    <summary type="html">&lt;p&gt;Could be difficult. What should be the breadcrumb for contents?
  Should it be the folder structure where the content is located? Should
  it be based on the page hierarchy where the content is placed? And
  which page if the content is placed on multiple pages?&lt;/p&gt;</summary>
    <dc:creator>Dominik Marks</dc:creator>
    <dc:date>2021-02-15T15:42:48Z</dc:date>
  </entry>
  <entry>
    <title>RE: show a content's breadcrumb navigation in the search result</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120615518" />
    <author>
      <name>Gopal Prasad Satapathy</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120615518</id>
    <updated>2021-02-15T10:00:59Z</updated>
    <published>2021-02-15T10:00:59Z</published>
    <summary type="html">&lt;p&gt;Any pointer towards achieving this in 7.1?&lt;/p&gt;</summary>
    <dc:creator>Gopal Prasad Satapathy</dc:creator>
    <dc:date>2021-02-15T10:00:59Z</dc:date>
  </entry>
  <entry>
    <title>show a content's breadcrumb navigation in the search result</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120548908" />
    <author>
      <name>Gopal Prasad Satapathy</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120548908</id>
    <updated>2021-02-17T05:34:03Z</updated>
    <published>2021-01-15T07:37:08Z</published>
    <summary type="html">&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Using DXP 7.1&lt;/p&gt;
&lt;p&gt;How can i display a contents breadcrumb navigation in the search
  result for each item, when the search is performed from the default
  search bar.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</summary>
    <dc:creator>Gopal Prasad Satapathy</dc:creator>
    <dc:date>2021-01-15T07:37:08Z</dc:date>
  </entry>
</feed>
