META-INF.resources.edit_feed.jsp Maven / Gradle / Ivy
<%--
/**
* 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="/init.jsp" %>
<%
EditJournalFeedDisplayContext editJournalFeedDisplayContext = new EditJournalFeedDisplayContext(request, liferayPortletResponse);
portletDisplay.setShowBackIcon(true);
portletDisplay.setURLBack(editJournalFeedDisplayContext.getRedirect());
portletDisplay.setURLBackTitle(portletDisplay.getPortletDisplayName());
renderResponse.setTitle(editJournalFeedDisplayContext.getTitle());
%>
<%
List ddmTemplates = editJournalFeedDisplayContext.getDDMTemplates();
%>
<%
for (DDMTemplate ddmTemplate : ddmTemplates) {
%>
<%
}
%>
<%
DDMForm ddmForm = editJournalFeedDisplayContext.getDDMForm();
%>
">
<%
Map ddmFormFieldsMap = ddmForm.getDDMFormFieldsMap(true);
for (DDMFormField ddmFormField : ddmFormFieldsMap.values()) {
String ddmFormFieldType = ddmFormField.getType();
%>
<%
DDMFormFieldOptions ddmFormFieldOptions = ddmFormField.getDDMFormFieldOptions();
for (String optionValue : ddmFormFieldOptions.getOptionsValues()) {
LocalizedValue optionLabels = ddmFormFieldOptions.getOptionLabels(optionValue);
optionValue = ddmFormField.getName() + StringPool.UNDERLINE + optionValue;
%>
<%
}
%>
<%
}
%>
<%
for (String curFeedType : RSSUtil.FEED_TYPES) {
%>
<%
}
%>
function removeAssetCategory() {
document. fm. assetCategoryIds.value =
'';
document. fm. assetCategory.value =
'';
document. fm. removeAssetCategoryButton.disabled = true;
}
function removeDDMStructure() {
document. fm. ddmStructureId.value =
'0';
document. fm. ddmTemplateKey.value =
'';
document. fm. ddmRendererTemplateKey.value =
'';
document. fm. contentField.value =
'<%= JournalFeedConstants.WEB_CONTENT_DESCRIPTION %>';
submitForm(document. fm, null, false, false);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy