magnolia

Magnolia CMS with Blossom + spring security

大城市里の小女人 提交于 2019-12-11 23:12:57
问题 I have question to magnolia blossom users regarding spring security I'm trying to follow all guidelines provided on magnolia cms pages but no one of them works for me. I have configured web.xml and spring security context in the way it was described + my own configuration for retrieving user from db. I can start application with jetty(eclipse) without any any errors about beans etx, but I can't achieve situation when login page appears. When running in on my developer magnolia jetty instance

How to change the default 404 error page with custom page from pages app

戏子无情 提交于 2019-12-11 13:13:53
问题 I am new to Magnolia. I have created an Error page in Pages App. Now I would like to change the Default 404 error page with my error page. How do I do this? 回答1: Since magnolia 3.5 (magnolia internal error page) Please open your web.xml file and update error-page tag like the following code, <error-page> <error-code>404</error-code> <location>/website-country/error-page</location> </error-page>. Here /website-country/error-page is the custom page which is available in Pages App . Resources

Magnolia Mail Module Doesn't Work

二次信任 提交于 2019-12-11 07:26:57
问题 Im trying to send an email using Mail Module in Magnolia CMS 4.5.4. The code I have so far is: protected void sendEmail(CommentDTO comment){ if(comment!=null){ try{ MgnlMailFactory mailFactory = MailModule.getInstance().getFactory(); if(mailFactory!=null){ Map<String, Object> params = new HashMap<String, Object>(); MgnlEmail mail = mailFactory.getEmailFromTemplate("MyTemplate", params); mail.setToList("whoever@whatever.co.uk"); mail.setBody("HELLO"); mail.setFrom("whoever@whatever.co.uk"); if

Vanilla Maven 3.3.9 does not find Magnolia catalog for blossom archetype generation with message: “No catalog defined. Using internal catalog”

家住魔仙堡 提交于 2019-12-11 04:37:11
问题 The Magnolia CORE Docs for Version 5.5 requires for Getting started with Blossom an maven archetype generation based on their own catalog repository. I can see and enter that archetype-catalog.xml as it should be andy everything seems right there. However if I try to generate it with the given command from the documentation mvn archetype:generate -DarchetypeCatalog=https://nexus.magnolia-cms.com/content/groups/public/ I don't get the list of the magnolia foreign repo, but from the fallback

magnolia WebDAV doesn't work

三世轮回 提交于 2019-12-07 23:56:08
问题 I have installed Magnolia WebDAV-2.0 and try to access the templates Folder /magnoliaAuthor/.webdav/templates/ with BitKinex. I get the error HTTP forbidden when I try to access the templates Folder ; See the following picture: I read in JIRA, that WebDAV-2.0 Version fixes this Problem but I try it and get the same error. Calling http://localhost:8080/magnoliaAuthor/.webdav/templates with the browser Returns blank page, which mean for me that webdav is installed successfully. How to Access

How to impersonate user using SwitchUserFilter in Spring?

天涯浪子 提交于 2019-12-03 17:47:15
问题 I do not have knowledge on Spring Impersonating user. I have gone through some sample code of configuration for impersonating user and noticed that SwitchUserFilter is used for this implementation. How to implement impersonate user using Spring SwitchUserFilter Filter and how does it works ? What is the internal flow of impersonating user ? In my application I am using spring security also. Can anyone please help me with simple description or any sample example to achieve this ? 回答1: You

How to impersonate user using SwitchUserFilter in Spring?

点点圈 提交于 2019-12-03 07:49:26
I do not have knowledge on Spring Impersonating user. I have gone through some sample code of configuration for impersonating user and noticed that SwitchUserFilter is used for this implementation. How to implement impersonate user using Spring SwitchUserFilter Filter and how does it works ? What is the internal flow of impersonating user ? In my application I am using spring security also. Can anyone please help me with simple description or any sample example to achieve this ? You first need to create an instance of SwitchUserFilter , like this: @Bean public SwitchUserFilter switchUserFilter

Hide Fields Based on dropdown value in Magnolia content app

给你一囗甜甜゛ 提交于 2019-12-01 10:20:40
问题 I am developing a content app similar to Tours. In this I have a form that has multiple fields. Now i have a requirement like http://jsfiddle.net/5SArB/1911/ fiddle. I need to hide few fields based on the selection from dropdown like how parent details hidden when age is more than 18 . How to achieve this in magnolia content app? enter code here 回答1: This should be your yaml in Magnolia 5.7. You should use the switchable field combined with composite field: wide: true form: tabs: - name:

Java-based CMS with RESTful service / API to access content [closed]

做~自己de王妃 提交于 2019-11-28 17:27:56
问题 For those who might vote to close this question due to "not constructive - As it currently stands, this question is not a good fit for our Q&A format." - Would be great if you would suggest where should I post this question (https://softwareengineering.stackexchange.com/ ? or any CMS-focused forum?) Similar questions have been asked before: https://stackoverflow.com/questions/918722/java-or-php-for-homegrown-cms https://stackoverflow.com/questions/4005811/is-there-a-good-cms-for-java https:/

JSP not rendering properly in Tomcat

时光总嘲笑我的痴心妄想 提交于 2019-11-28 09:54:21
问题 I have a JSP page running in Tomcat that is not rendering properly. Here is what helloworld.jsp looks like: <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib uri="cms-taglib" prefix="cms" %> <html> <head> <title>${content.title}</title> </head> <body> <cms:mainBar dialog="my-page-properties-dialog" label="Page Properties" adminButtonVisible="true"/> <h1>${content.title}</h1> <p>Hello Magnolia World !</p> Current time: <%= new java.util.Date() %> <%-- JSP Comment --%