Foros de discusión
rating of the wiki in wiki-display
Clement S Vincent, modificado hace 16 años.
rating of the wiki in wiki-display
Junior Member Mensajes: 28 Fecha de incorporación: 23/10/07 Mensajes recientes
1.add the following lines in ‘\src\portal-web\docroot\html\portlet\wiki_display\view.jsp’
<table>
<tr>
<td>
<liferay-ui:ratings
className="<%= WikiPage.class.getName() %>"
classPK="<%= wikiPage.getResourcePrimKey() %>"
url='<%= themeDisplay.getPathMain() + "/wiki/rate_wiki" %>'
/>
</td>
<td style="padding-left:15px;"></td>
<td style="padding-top:15px;">
after line <%@ include file="/html/portlet/wiki/view_page_content.jspf" %>
and close the </td></tr></table> at the end.
2. Include the following line in ‘\src\portal-web\docroot\WEB-INF\struts-config.xml’ inside wiki configuration.
<action path="/wiki/rate_wiki" type="com.liferay.portlet.ratings.action.RateEntryAction" />
<table>
<tr>
<td>
<liferay-ui:ratings
className="<%= WikiPage.class.getName() %>"
classPK="<%= wikiPage.getResourcePrimKey() %>"
url='<%= themeDisplay.getPathMain() + "/wiki/rate_wiki" %>'
/>
</td>
<td style="padding-left:15px;"></td>
<td style="padding-top:15px;">
after line <%@ include file="/html/portlet/wiki/view_page_content.jspf" %>
and close the </td></tr></table> at the end.
2. Include the following line in ‘\src\portal-web\docroot\WEB-INF\struts-config.xml’ inside wiki configuration.
<action path="/wiki/rate_wiki" type="com.liferay.portlet.ratings.action.RateEntryAction" />