Foros de discusión
How to check if forum post is answered or not?
Pranay R Patadiya, modificado hace 12 años.
How to check if forum post is answered or not?
Regular Member Mensajes: 177 Fecha de incorporación: 23/02/10 Mensajes recientes
Hi Folks,
I have a scenario that, in our liferay portal one can post a thread marked as question.
Then people can answer that post and thread owner will mark anyone answer as "answer".
Now i want to check if that post is answered or not, so how can i check that?
Thanks,
Pranay
I have a scenario that, in our liferay portal one can post a thread marked as question.
Then people can answer that post and thread owner will mark anyone answer as "answer".
Now i want to check if that post is answered or not, so how can i check that?
Thanks,
Pranay
Pankaj Kathiriya, modificado hace 12 años.
RE: How to check if forum post is answered or not?
Liferay Master Mensajes: 722 Fecha de incorporación: 5/08/10 Mensajes recientes
Hi Pranay,
I have checked view_thread_message.jspf, there i found following snippet that checks if thread is answered.
<!--
<div class="answer <%=
<liferay-ui:icon
image="checked"
label="<%= true %>"
message="answer"
/>
<c:if test="<%= (message.getRootMessageId() != MBMessageConstants.DEFAULT_PARENT_MESSAGE_ID) && MBMessagePermission.contains(permissionChecker, message.getRootMessageId(), ActionKeys.UPDATE) %>">
(<a href="javascript:<portlet:namespace />deleteAnswerFlag('<%= message.getMessageId() %>');"><liferay-ui:message key="unmark" /></a>)
</c:if>
</div>
--!>
The line in block letter can help you in find if thread is answered or not!
Hope this helps.
Thanks,
Pankaj
I have checked view_thread_message.jspf, there i found following snippet that checks if thread is answered.
<!--
<div class="answer <%=
!message.isRoot() && MBMessageFlagLocalServiceUtil.hasAnswerFlag(message.getMessageId())? "" : "aui-helper-hidden" %>" id="<portlet:namespace />deleteAnswerFlag_<%= message.getMessageId() %>">
<liferay-ui:icon
image="checked"
label="<%= true %>"
message="answer"
/>
<c:if test="<%= (message.getRootMessageId() != MBMessageConstants.DEFAULT_PARENT_MESSAGE_ID) && MBMessagePermission.contains(permissionChecker, message.getRootMessageId(), ActionKeys.UPDATE) %>">
(<a href="javascript:<portlet:namespace />deleteAnswerFlag('<%= message.getMessageId() %>');"><liferay-ui:message key="unmark" /></a>)
</c:if>
</div>
--!>
The line in block letter can help you in find if thread is answered or not!
Hope this helps.
Thanks,
Pankaj