magnolia

RichText in Magnolia CMS is changing HTML text

北城以北 提交于 2019-12-25 03:34:49
问题 I would like to ask how I can block richText from changing html text under source view. I'm using Blossom module and defined richText as @Chris J advised me to do: Add source button to Magnolia CMS richText control Whenever I put html code in source code, switch to normal view and get back to source view the code is changed. For example the following part of code is missing : <div class="components"> <div class="product col img-slider"> <div id="product-image" class="royalSlider productImage

Magnolia - FileNotFoundException to find the Template on windows

做~自己de王妃 提交于 2019-12-24 22:14:31
问题 I am following the initial Magnolia tutorial, Tutorial While I am trying step 4 , I am getting Error java.io.FileNotFoundException: Template"\\myTemplate\\pages\\myPage.ftl" not found. Since I am on windows 7 I have specified teplateScript path as \myTemplate\pages\myPage.ftl (with forward slash) What am I doing wrong here ? 回答1: The exception suggest you used backward slash instead of forward. Try to write it with forward slash like /myTemplate/pages/myPage.ftl . Make sure file really exists

Page Template is missing rather Only jsp page is comming without Template in Magnolia-bossom

£可爱£侵袭症+ 提交于 2019-12-24 21:27:08
问题 I am doing an Spring application using Magnolia CMS. This is my controller : @Controller @Template(title = "Unlock Form", id = "newPositionModule:components/unlockAccount") public class UnlockAccountComponent { @Autowired private LoginServiceImpl loginServiceImpl; @Autowired private JavaMailSender mailSender; @RequestMapping(value = "/unlockAccount", method = RequestMethod.GET) public String render(@ModelAttribute("resetForm")ResetForm resetForm) { return "components/unlockAccountForm.jsp"; }

Programatically render template area in Magnolia CMS

…衆ロ難τιáo~ 提交于 2019-12-24 14:02:06
问题 I am using Magnolia CMS 5.4 and I want to build a module that will render some content of a page and expose it over REST API. The task is simple but not sure how to approach it and/or where to start. I want my module to generate partial template or an area of a template for a given reference, let's say that is "header". I need to render the header template/area get the HTML and return that as a response to another system. So questions are: is this possible at all and where to start? 回答1: OK

Embed magnoliaPublic context content into a different web app context

送分小仙女□ 提交于 2019-12-24 10:44:28
问题 We're trying to embed Magnolia-managed content into some of the JSPs of an existing web app. In Tomcat we deployed and set up a magnoliaPublic context that runs along our existing app context (i.e. two different WAR files). In the browser you can access both: http://localhost:8080/app/test.jsp and http://localhost:8080/magnoliaPublic/footer So, for example, we'd like /app/test.jsp to include a Magnolia page like /magnoliaPublic/footer (just a div). We managed to do it by adding: <c:import url

Specify content-type for documents uploaded in Magnolia

五迷三道 提交于 2019-12-13 19:19:53
问题 We have uploaded an mp4 video file into our Magnolia DMS, which fails to play on Safari (Mac/iPad). Investigation shows that the Content-Type returned by Magnolia is "application/octet-stream" for the request. When serving the file through Tomcat directly, the correct Content-Type "video/mp4" is returned and video playback works. How can we configure the content-type to be returned in Magnolia? We know the content-type is a function of the request (e.g. if we add ".jpg" to the URL the type

Magnolia Activation Module (version 5.1.0) Ensures that the key property 'magnolia.author.key.location' is present in the Magnolia properties file

走远了吗. 提交于 2019-12-13 16:25:16
问题 I have checked out the following example project ant tried to get it started with magnolia 5 http://svn.magnolia-cms.com/svn/community/magnolia/tags/magnolia-4.3.1/magnolia-empty-webapp I have updated maven dependencies, fixed a ton of exeptions and errors and my magnolia-empty-webapp pom.xml looks now like this: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven

Add source button to Magnolia CMS richText control

我怕爱的太早我们不能终老 提交于 2019-12-13 06:37:52
问题 I need to enable source button on my richText control ( I have to put there HTML code ) and I have follow this tutorial: https://documentation.magnolia-cms.com/display/DOCS/Rich+text So I have added following settings source - true - Boolean in standard-templating-kit/dialogs/generic/controls/text but it doesn't work for me. I'm using Magnolia CMS 5.2.4. Can anybody please tell me how I can turn on this button or maybe if there is another control to put there html code ? Best Regards Jan 回答1:

How to use a FreeMarker template in a Magnolia App?

你说的曾经没有我的故事 提交于 2019-12-13 03:04:23
问题 I'm using Magnolia 5.4 and have developed an app following the documentation: https://documentation.magnolia-cms.com/display/DOCS54/Apps The app is being rendered correctly in the magnolia shell. Opening the app shows a «Hello World» message as described in the documentation: https://documentation.magnolia-cms.com/display/DOCS54/Programming+an+app#Programminganapp-MainSubApp I've removed the unnecessary code and ended up with this: public class HelloWorldMainSubAppViewImpl implements

Magnolia CMS internationalization of 404 pages?

送分小仙女□ 提交于 2019-12-12 04:24:39
问题 I have setup a custom 404 page, as described on "How to change the default 404 error page with custom page from pages app". Like the rest of my pages created with Magnolia CMS' "page app", that custom 404 error page is multilingual. However, when redirected to my custom 404 error page, I am always shown the default language. Even if the page I am trying to reach was expected to be in another language. For instance: with " English " as defined default language, I am navigating the German