Uploaded image for project: 'PUBLIC - Liferay Portal Enterprise Edition'
  1. PUBLIC - Liferay Portal Enterprise Edition
  2. LPE-1255

Search Portlet does not correctly link to Journal/Web Content articles

Details

    Description

      Search Portlet does not correctly link to Journal/Web Content articles. The link to the Journal/Web Content displayed the HTML of the page rather than bringing the user to the community that the Journal/Web Content was located in. This has been fixed, and the search result will bring the user to the community page where the Journal/Web Content resides in.

      As part of this bug fix, the following methods has been added JournalContentSearchLocalServiceUtil:

      public static List<JournalContentSearch> getArticleContentSearches(long groupId, String articleId)
      public static int getLayoutIdsCount(String articleId)

      and the following method has been added to JournalContentSearchUtil:

      public static List<JournalContentSearch> findByArticleId(String articleId)
      public static List<JournalContentSearch> findByArticleId(String articleId, int start, int end)
      public static List<com.liferay.portlet.journal.model.JournalContentSearch> findByArticleId(String articleId, int start, int end, OrderByComparator obc)
      public static JournalContentSearch findByArticleId_First(String articleId, OrderByComparator obc)
      public static JournalContentSearch findByArticleId_Last(String articleId, OrderByComparator obc)
      public static com.liferay.portlet.journal.model.JournalContentSearch[] findByArticleId_PrevAndNext(long contentSearchId, String articleId, OrderByComparator obc)
      public static void removeByArticleId(String articleId)
      public static int countByArticleId(String articleId)

      Attachments

        Issue Links

          Activity

            People

              wesley.gong Wesley Gong
              wesley.gong Wesley Gong
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Packages

                  Version Package
                  5.1 EE SP4 (5.1.7)
                  5.2 EE SP2 (5.2.6)