Details

      Description

      I have a preview probelm. When I create a new entry from Manage entries, a new page is created with now content to preview. I traced the error back to the file entry_action.jspf which I had modified before and here it is:

      <%
      /**

      • Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
        *
      • This library is free software; you can redistribute it and/or modify it under
      • the terms of the GNU Lesser General Public License as published by the Free
      • Software Foundation; either version 2.1 of the License, or (at your option)
      • any later version.
        *
      • This library is distributed in the hope that it will be useful, but WITHOUT
      • ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
      • FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
      • details.
        */
        %>

      <div class="edit-actions">
      <table class="lfr-table">
      <tr>
      <c:if test="<%= MssPortalAnnouncementsEntryPermission.contains(permissionChecker, entry, ActionKeys.UPDATE) %>">
      <td class="edit-entry">
      <portlet:renderURL var="editURL">
      <portlet:param name="struts_action" value="/announcements/edit_entry" />
      <portlet:param name="redirect" value="<%= currentURL %>" />
      <portlet:param name="entryId" value="<%= String.valueOf(entry.getEntryId()) %>" />
      </portlet:renderURL>

      <liferay-ui:icon
      image="edit"
      label="<%= true %>"
      url="<%= editURL %>"
      />
      </td>
      </c:if>

      <c:if test="<%= MssPortalAnnouncementsEntryPermission.contains(permissionChecker, entry, ActionKeys.DELETE) %>">
      <%

      String deleteRedirect = HttpUtil.removeParameter(currentURL, renderResponse.getNamespace() + searchContainer.getCurParam());
      deleteRedirect = HttpUtil.removeParameter(currentURL, renderResponse.getNamespace() + searchContainer.getCurParam());
      %>
      <td class="delete-entry">
      <portlet:actionURL var="deleteURL">
      <portlet:param name="struts_action" value="/announcements/edit_entry" />
      <portlet:param name="<%= Constants.CMD %>" value="<%= Constants.DELETE %>" />
      <portlet:param name="redirect" value="<%= deleteRedirect %>" />
      <portlet:param name="entryId" value="<%= String.valueOf(entry.getEntryId()) %>" />
      </portlet:actionURL>

      <liferay-ui:icon-delete
      label="<%= true %>"
      url="<%= deleteURL %>"
      />
      </td>
      </c:if>

      <td class="control-entry">
      <c:if test='<%= tabs1.equals("entries") && themeDisplay.isSignedIn() %>'>
      <a href="<%= "javascript:" + renderResponse.getNamespace() + "handleEntry(" + entry.getEntryId() + ");" %>"><liferay-ui:message key='<%= ((flagValue == AnnouncementsFlagConstants.NOT_HIDDEN) ? "mark-as-read" : "show") %>' /></a>
      </c:if>
      </td>
      </tr>
      </table>
      </div>

        Attachments

          Activity

            People

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

              Dates

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

                Packages

                Version Package
                6.0.X EE