Uploaded image for project: 'PUBLIC - Liferay Documentation'
  1. PUBLIC - Liferay Documentation
  2. LRDOCS-6338

JSP Taglibs for Comments need to be updated.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Fix Version/s: 7.1.x
    • Component/s: Collaboration
    • Labels:
      None
    • Type of Documentation:
      Developer: Development Frameworks

      Description

      The instructions for comments need to be updated to match the pattern used in the 7.1 Learning Path:

      <% Discussion discussion =
      CommentManagerUtil.getDiscussion(user.getUserId(),
      scopeGroupId, Entry.class.getName(),
      entry.getEntryId(), new ServiceContextFunction(request));
      %>

      <c:if test="<%= discussion != null %>">
      <h2>
      <strong><liferay-ui:message arguments="<%= discussion.getDiscussionCommentsCount() %>" key='<%= (discussion.getDiscussionCommentsCount() == 1) ? "x-comment" : "x-comments" %>' /></strong>
      </c:if>

      <portlet:actionURL name="invokeTaglibDiscussion"
      var="discussionURL" />

      <liferay-comment:discussion
      className="<%= Entry.class.getName() %>"
      classPK="<%= entry.getEntryId() %>"
      discussion="<%= discussion %>"
      formName="fm2"
      ratingsEnabled="<%=true%>"
      redirect="<%= currentURL %>"
      userId="<%= entry.getUserId() %>"
      />

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                7.1.x