magnolia

Can't find AddHeadersFilter in CMS Magnolia 5.7.4

左心房为你撑大大i 提交于 2021-01-29 09:18:36
问题 I can't find AddHeadersFilter in CMS Magnolia 5.7.4 This class in classpath magnolia-core\5.7.4\magnolia-core-5.7.4.jar!\info\magnolia\cms\filters\AddHeadersFilter.class but not accessible in Magnoia's Configuration panel. According documentation it should be there Any clue how to get access to this filter and configure to support CORS? Update: Update 2: Here is how I send request let url = 'http://localhost:8080/en/consumer' fetch(url, { mode: 'no-cors', headers: { 'Content-Type': 'text/html

Why does Array.prototype.filter() throw an error in Magnolia JavaScript models?

若如初见. 提交于 2020-02-26 00:52:27
问题 I'm attempting to filter a FreeMarker list in a Magnolia JavaScript model using Array.prototype.filter(). List [#assign list = [1, 2, 3]] Model var Model = function() { this.filterList = function(list) { return list.filter(function(item) { return item === 2 }); } }; new Model(); Usage ${model.filterList(list)} However, I get the following error. Caused by: jdk.nashorn.internal.runtime.ECMAException: TypeError: list.filter is not a function Nashorn was implemented using ECMAScript-262 5.1. The

How to make an AJAX call in Magnolia Blossom?

偶尔善良 提交于 2020-01-24 00:32:07
问题 I am new to Magnolia Blossom. I have to perform an AJAX call in my application in Blossom. We have a Controller per component. So I am unable to make an AJAX request. Can anyone suggest how can I achieve this? 回答1: you may define a different Servlet (and web application context), you can define a servlet that handles all the requests that start for /rest/* and then below that on your web.xml you can define the blossom servlet. All the rest is configuration, try to see how to create a webapp

cms:out escapeXml=“false”: prevent <br> in multi line input

◇◆丶佛笑我妖孽 提交于 2020-01-17 12:39:52
问题 Using cms:out escapeXml="false" in a Magnolia jsp, outputs a <br> anywhere, where a line break is in the input string. In the jsp, the code is: <cms:out nodeDataName="plainHtml" escapeXml="false" /> plainHtml is set with a controlType : edit , type : String . Is it possible to prevent the output of <br> anywhere, where a line break is in the input string? Thanks for your help. 回答1: There is a "lineBreak" parameter that you can set to any string you like. See Magnolia taglib documentation for

cms:out escapeXml=“false”: prevent <br> in multi line input

大憨熊 提交于 2020-01-17 12:39:10
问题 Using cms:out escapeXml="false" in a Magnolia jsp, outputs a <br> anywhere, where a line break is in the input string. In the jsp, the code is: <cms:out nodeDataName="plainHtml" escapeXml="false" /> plainHtml is set with a controlType : edit , type : String . Is it possible to prevent the output of <br> anywhere, where a line break is in the input string? Thanks for your help. 回答1: There is a "lineBreak" parameter that you can set to any string you like. See Magnolia taglib documentation for

Magnolia 6.0 custom action implementation

大城市里の小女人 提交于 2020-01-15 05:20:10
问题 I try to implement custom action in actionbar . My implementation is package com.example; import info.magnolia.ui.api.action.Action; import info.magnolia.ui.api.action.ActionExecutionException; import info.magnolia.ui.contentapp.detail.action.AbstractItemActionDefinition; public class MyActionDefinition extends AbstractItemActionDefinition { public MyActionDefinition() { this.setImplementationClass(MyAction.class); } } class MyAction implements Action { @Override public void execute() throws

Magnolia CMS 5.5.5 Choose from roles

五迷三道 提交于 2020-01-13 06:57:08
问题 I am looking for a possibility to choose certain roles in a Page property Dialog. Some parts of the page should be only viewable to certain roles. What I got is - name: allowedRoles class: info.magnolia.ui.form.field.definition.MultiValueFieldDefinition label: Select Roles field: name: roleLinkField class: info.magnolia.ui.form.field.definition.LinkFieldDefinition targetWorkspace: userroles appName: security identifierToPathConverter: class: info.magnolia.ui.form.field.converter

Magnolia Demo project mvn build failed due to not able to fetch magnolia-setproperty-maven-plugin

一世执手 提交于 2020-01-06 21:10:42
问题 I am trying to build the demo application explained in https://documentation.magnolia-cms.com/display/DOCS/Travel+Demo+-+for+developers I am getting following dependency issue. Downloading: https://repo.maven.apache.org/maven2/info/magnolia/maven/plugins/magnolia-setproperty-maven-plugin/1.2.1/magnolia-setproperty-maven-plugin-1.2.1.pom [WARNING] The POM for info.magnolia.maven.plugins:magnolia-setproperty-maven-plugin:jar:1.2.1 is missing, no dependency information available Downloading:

Magnolia CMS DateFieldDefinition issue with Daylight saving time change

戏子无情 提交于 2020-01-04 06:18:08
问题 When using Magnolia CMS' DateFieldDefinition class: if my computer's current date is not matching the saved date's Daylight saving time, the saved date's time will be incorrect. The relevant class: info.magnolia.ui.form.field.definition.DateFieldDefinition. The relevant Vaadin component "Date and Time Input with DateField". Another person seemed to have the same problem. EDIT: Magnolia CMS appears to have a ticket about this issue already Example: In this example, I am running Magnolia CMS

Form- Action Attribute value

心已入冬 提交于 2019-12-25 04:22:48
问题 What does it mean if I am setting the action attribute of form element set to "?" ? In my application the form element is : <form action = "?" commandName="demoPageForm" method="POST"> ....... </form> In controller I am having like: @RequestMapping(value = "/getDemoPage", method = RequestMethod.POST) public ModelAndView setPartGross( @ModelAttribute("demoPageForm") DemoPageForm emoPageForm, BindingResult result) { ....... return ... ; } Here the control goes to this controller method. How it