Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-25992

It is not possible to display structured web-content in third-party portlet.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 6.1.0 CE GA1
    • Fix Version/s: 6.1.1 CE GA2
    • Labels:
      None
    • Environment:
      liferay 6.1.0 tomcat bundle
    • Liferay Contributor's Agreement:
      Accept

      Description

      We implementing own portlet - this portlet shoudl display web-content by specified articleId.
      So, to do it we are using followed code:

      <%
      JournalArticleDisplay articleDisplay = JournalContentUtil.getDisplay(themeDisplay.getScopeGroupId(), String.valueOf(articleId), null, themeDisplay.getLanguageId(), themeDisplay);
      %>

      <%= displayArticle == null ? StringPool.BLANK : displayArticle.getContent() %>

      this works fine for normal articles - but in case we are trying to display template driven article - we always got null from getDisplay method.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 11 weeks ago

                  Subcomponents