All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.blogs.edit_entry.jsp Maven / Gradle / Ivy

There is a newer version: 6.0.134
Show newest version
<%--
/**
 * SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
 * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
 */
--%>

<%@ include file="/blogs/init.jsp" %>

<%
BlogsEditEntryDisplayContext blogsEditEntryDisplayContext = (BlogsEditEntryDisplayContext)request.getAttribute(BlogsEditEntryDisplayContext.class.getName());

BlogsEntry entry = blogsEditEntryDisplayContext.getBlogsEntry();

portletDisplay.setShowBackIcon(true);
portletDisplay.setURLBack(blogsEditEntryDisplayContext.getRedirect());

renderResponse.setTitle(blogsEditEntryDisplayContext.getPageTitle(resourceBundle));
%>


	
		
		
		
		
		

		
<%= StringUtil.merge(blogsEditEntryDisplayContext.getImageExtensions()) %>. <% FileSizeException fileSizeException = (FileSizeException)errorException; %>
">
<% int titleMaxLength = ModelHintsUtil.getMaxLength(BlogsEntry.class.getName(), "title"); %>
<% Portlet portlet = PortletLocalServiceUtil.getPortletById(BlogsPortletKeys.BLOGS); boolean automaticURL = false; if (entry == null) { automaticURL = Validator.isNull(blogsEditEntryDisplayContext.getURLTitle()); } else { automaticURL = blogsEditEntryDisplayContext.isAutomaticURL(); } String inputAddon = StringUtil.shorten("/-/" + portlet.getFriendlyURLMapping(), 40) + StringPool.SLASH; %>

<%= StringUtil.merge(blogsEditEntryDisplayContext.getImageExtensions()) %>.
' inlineLabel="right" label="allow-pingbacks" labelCssClass="simple-toggle-switch" name="allowPingbacks" type="toggle-switch" value="<%= blogsEditEntryDisplayContext.isAllowPingbacks() %>" /> <% int i = 0; for (String trackback : StringUtil.split(entry.getTrackbacks())) { %> <% } %>
<% Group scopeGroup = themeDisplay.getScopeGroup(); %> <% boolean pending = false; if (entry != null) { pending = entry.isPending(); } %>
<% String saveButtonLabel = "save"; if ((entry == null) || entry.isDraft() || entry.isApproved()) { saveButtonLabel = "save-as-draft"; } String publishButtonLabel = "publish"; if (WorkflowDefinitionLinkLocalServiceUtil.hasWorkflowDefinitionLink(themeDisplay.getCompanyId(), scopeGroupId, BlogsEntry.class.getName())) { publishButtonLabel = "submit-for-workflow"; } %>
<% if (entry != null) { PortalUtil.addPortletBreadcrumbEntry(request, BlogsEntryUtil.getDisplayTitle(resourceBundle, entry), blogsEditEntryDisplayContext.getViewEntryURL()); PortalUtil.addPortletBreadcrumbEntry(request, LanguageUtil.get(request, "edit"), currentURL); } else { PortalUtil.addPortletBreadcrumbEntry(request, LanguageUtil.get(request, "add-entry"), currentURL); } %>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy