[opencms-dev] Alkacon OAMP "Module Comments" problems
Marc Schlegel
my.mailing.lists at gmx.de
Wed Sep 17 21:47:04 CEST 2008
Awesome, thank you very much Olli
Olli Aro schrieb:
>
> Hi all,
>
>
>
> I have finally faced with problem also with one of our OpenCms
> installations. The cause for this problem is that for some reason
> command ${cms.requestContext.uri} does not work.
>
>
>
> So, in order to get this working I modified the comment include as
> follows:
>
>
>
> <!-- COMMENTS START -->
>
> <%
>
> CmsJspActionElement cms = *new* CmsJspActionElement(pageContext,
> request, response);
>
> String currentUri = cms.getRequestContext().getUri();
>
> %>
>
>
>
> <c:set var="comments"><cms:property name="comments"
> file="search"/></c:set>
>
>
>
> <c:*if* test="${!empty comments}">
>
>
>
> <cms:include
> file="%(link.weak:/system/modules/com.alkacon.opencms.comments/elements/comment_main.jsp:a1074f4d-1205-11dd-8a3f-111d34530985)"
> >
>
>
>
> <cms:param name="cmturi"><%= currentUri %></cms:param>
>
>
>
> </cms:include>
>
>
>
> </c:*if*>
>
> <!-- COMMENTS END -->
>
>
>
> Hope this helps for the other people with this problem as well.
>
>
>
> Regards,
>
>
>
> Olli
>
>
>
More information about the opencms-dev
mailing list