aem

Set Active User to AEM background job throws Exception unexpectedly

陌路散爱 提交于 2020-01-07 07:45:11
问题 We have background job running that requires a user to be active. The following way works fine but we have to hard-code the password which is not ideal. try { session = repository.login(new SimpleCredentials("admin", "admin".toCharArray())); } catch (RepositoryException ex) { log.error("SessionHelper - login issue", ex); } We attempt a better way to set active user without setting password as follows: Map<String, Object> params = new HashMap<String, Object>(); params.put

Not able to proceed with cq launcher

核能气质少年 提交于 2020-01-07 01:53:52
问题 I have created a launcher which invokes a workflow on creation of an asset of type dam:asset but when I am trying to run the workflow in Publish instance, replicating image from author the workflow is not getting invoked am I doing something wrong? is there a workaround? 来源: https://stackoverflow.com/questions/38119558/not-able-to-proceed-with-cq-launcher

AEM6.1 mobile Apps

徘徊边缘 提交于 2020-01-06 14:38:13
问题 I needed some inputs on mobile apps. Query: I have an existing web application on AEM(angularJS is not used). I want to transform the same on Mobile app using AEM6.1 While reading through the documentation section of AEM Apps, I found that the mobile App built on AEM - works on the terminology and AngularJS framework. - mobile App has different paths and app structure as compared to AEM web Applications -since, phonegap has to be used, relative path needs to be different than the same of web

How can we compress images in DAM AEM6.3?

一个人想着一个人 提交于 2020-01-06 06:52:07
问题 We are trying to increase the page score (google) for our website. One of the options to do this is " Image optimization ". As we have a huge number of images in the DAM, how can we compress/optimize them? Does AEM have any such tool to achieve this ? ImageMagick is one of the tool to achieve this. Do we need to integrate that with AEM or we'll have to re-upload all the images after compressing them using the tool? Any suggestions? 回答1: In contrast to CSS, JS and HTML files which can be

How can we compress images in DAM AEM6.3?

怎甘沉沦 提交于 2020-01-06 06:51:09
问题 We are trying to increase the page score (google) for our website. One of the options to do this is " Image optimization ". As we have a huge number of images in the DAM, how can we compress/optimize them? Does AEM have any such tool to achieve this ? ImageMagick is one of the tool to achieve this. Do we need to integrate that with AEM or we'll have to re-upload all the images after compressing them using the tool? Any suggestions? 回答1: In contrast to CSS, JS and HTML files which can be

How to overwrite the default functionality of RSS feed in the AEM?

拟墨画扇 提交于 2020-01-06 05:59:06
问题 AEM has the default functionality to get the RSS feed and atom. I need to overwrite the URL value in the RSS feed. How the default functionality of RSS feed works in AEM and how to overwrite that one. There are few steps tried which don't work. They are Trying to overlay the same structure of /libs/fondation/... under the /apps/{project}/... and did custom changes under the /apps files. AEM basically search thing initially in /apps and then /libs . To cross check the process removed feed.jsp

AEM: getting states matching country from another node

久未见 提交于 2020-01-06 02:51:18
问题 I have the following design issue: I am reading a node which has country and states using which I could create a new json structure of country states. Using this json structure in point 1, I have consumed country using my country component as a dropdown. Using each country in a drop down in the country component, I can create different selections of countries by dragging multiple instance of country component. I can pull a default sling servlet by calling this authored page by appending

How can single instance of an OSGI factory configuration be read from Java in CQ

☆樱花仙子☆ 提交于 2020-01-05 10:25:44
问题 I need to read the specific child instance of an OSGi factory configuration. I believe it can't be accessed with the Service PID of the factory configuration so there should be a way to reference the child configuration via Java. Can anyone please help in providing a sample code or a way to do this? 回答1: Below is an example. "WSConnection" is an OSGI config where we can configure multiple configs. and the Helper class will help you pick the one you wanted. "configuration.id" is one of the

how properties are stored in /etc/designs for design dialog

浪子不回头ぞ 提交于 2020-01-05 10:14:31
问题 I'm new to CQ5 and working on a project that deals with refactoring code that uses design dialogs. Currently, I have a property declared as part of design dialog of my component. It creates a folder in /etc/designs/ for each template my component is used on. Is there a way we can make sure that those property values are stored at one particular configuration in /etc/design(as opposed to multiple)? I need to make sure only one set of configurations is used for all pages that use my component.

Adobe CQ EXTJS component data post to servlet

╄→гoц情女王★ 提交于 2020-01-05 09:32:20
问题 I got a EXTJS CQ component with two text fields and and button. When the "save" button clicked, the dialog data has to be submitted to custom sling servlet. Custom sling servlet will call a osgi service and finally saves data to crx using jcr api. Question : How to post the dialog data to servlet ? I am new to CQ, Thanks for any help! -Sri 回答1: I'm assuming when you say "save" you are referring to some custom button and not the "OK" button that saves the dialog data to the node. Add a handler