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">
      <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()) %>" />

      label="<%= true %>"
      url="<%= editURL %>"

      <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()) %>" />

      label="<%= true %>"
      url="<%= deleteURL %>"

      <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>




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


              • Created:
                Days since last comment:
                5 years, 36 weeks, 3 days ago


                Version Package
                6.0.X EE