aem

How to give user permissions programmatically?

♀尐吖头ヾ 提交于 2019-12-05 10:42:11
I know I can give permissions in ${host}:4502/useradmin when I double click user login and go to Permissions tab I want to give permissions when I deploy content package. Is it possible? When you give permission for a user for a particular node/path , it basically stores the permission on the node level below the rep:policy node (allow/deny). I want to give permissions when I deploy content package. You can deploy an AEM package containing only rep:policies which will serve the same purpose of setting up permissions through useradmin. You can refer to ACL packager from ACS Tools for packaging

Iteration (for loop) in sightly

删除回忆录丶 提交于 2019-12-05 08:56:25
I had used <c:forEach> in jstl. Now i want to use sightly. My usecase is to print numbers from 1 to 10 then how can i iterate in sightly as for loop in java Sightly doesn't let you put any logic in it by design. What you should do is, you should customize your underlying model so that you can retrieve a prepared list of irrelevant (from Sightly's perspective) length that contains data that needs to be displayed. After that, just use data-sly-list . You'll need to google for more details, but in general, this is how you use lists in Sightly: <ul data-sly-list.myitem="${mymodel.myitems}" data

CQ5 preload a parsys with components

江枫思渺然 提交于 2019-12-05 08:02:30
I'm curious if anyone knows how to have a parsys load w/ default components already in it. What I'd like to accomplish is the following: Form Component - form-parsys - input component - input component For the most part this was pretty straight forward. I created a "form" component that has a parsys in it. What I would like is for this form component to load with a few default input components already set. These input components would need to be a part of the form-parsys node, so that they can be reorganized amongst user added input components. Not sure if there is any documentation out on

Vue.js mount component after DOM tree mutation to add a vue component

こ雲淡風輕ζ 提交于 2019-12-05 02:16:53
问题 I have a use case (below) where I need to mount (if thats the correct term) a Vue.js component template that was inserted into the DOM via jQuery, I can setup a Mutation Observer or react to certain events that are triggered when the mutation happens. I am using Vue.js v2 Here is a simple example I put together to illustrate the point: live jsFiddle https://jsfiddle.net/w7q7b1bh/2/ The HTML below contains inlined-templates for two components <script src="https://cdn.jsdelivr.net/npm/vue@2.5

Using Elasticsearch Rest High Client problem in AEM

旧巷老猫 提交于 2019-12-05 01:43:01
问题 I am trying to use Java High Level Rest Client in Adobe Experience Manager to finish project of comparison between Lucene, Solr and Elasticsearch search engines . I am having some problems with elasticsearh implementation . Here is the code: Dependency in the parent pom.xml (the same is defined in core pom.xml) <!-- Elasticseach dependencies --> <dependency> <groupId>org.elasticsearch.client</groupId> <artifactId>elasticsearch-rest-high-level-client</artifactId> <version>7.4.0</version> <

Adobe CQ and SASS/SCSS

∥☆過路亽.° 提交于 2019-12-05 01:16:13
问题 I would like to ask if adobe CQ support SASS/SCSS? Has anyone experience with it? 回答1: @diffa is right in that there is no native support for SASS, however LESS is accepted. If you don't want to go the LESS route, an SASS integration isn't that hard. We are currently using a SASS/Compass [with a sass template http://www.archetypecss.com/] integration with our development stack. To frame things up we're using a very simple MVN project to build our application. Before SCSS our project looked

In cq5 widget hide and show based on checkbox in dialog

丶灬走出姿态 提交于 2019-12-05 00:46:15
问题 I have a implementation in which my radio button group has to be shown and hide based on checkbox. I just included a Cq:panel in which it contains widgets of one checkbox and one radio button group(which contains two radio buttons) .I am getting this values in my jsp and manipulating accordingly. My question is, can i show/hide this radio button group when author checks/unchecks the checkbox because the radio button group is dependent on check box.It will be pleasing when i hide this group

How to create wizards in grante UI and design it in coral UI html in AEM

前提是你 提交于 2019-12-04 20:46:28
As i am new to AEM development, I want to know how to create wizards in AEM and how to design those using coral UI. As i have created wizard and it contains two step view: source ---> select I have designed this two step wizard and i have to show different items on each step.This steps are nothing but nodes under my createfragment page. 1) Source: I am having two radio buttons lets suppose selecting gender like male and female. I have created node for source and under source items, created two radio buttons. Functionality: Through the selected radio button i have to open next container which

Conditional show / hide of fields in AEM 6 dialogs

人盡茶涼 提交于 2019-12-04 18:42:08
问题 I am building a relatively straight-forward AEM component with a simple authoring dialog. At the top of my dialog is a select field. I want certain fields in my dialog to disappear when this select field is set to a specific item. I have studied the implementation of the Foundation Carousel component, which uses the cq-dialog-dropdown-showhide-target attribute, which is fine, but isn't quite the logic I am looking for. The logic used there is: show this field if the select is equal to X

How to modify the Adobe CQ ActivatePageProcess process

与世无争的帅哥 提交于 2019-12-04 18:18:57
I'm working with Adobe Experience Manager version 5.6 (CQ). I have a requirement that involves modifying the ActivatePageProcess workflow process, basically checking who the user is that is trying to publish, and actually opening the document for edit if it's not an administrator. The issue I'm having is that I'm not clear where I can find the ActivatePageProcess script in CRXDE ... or if it's even there. Once I find it, I know I can move it to /apps and make my changes, but so far I'm not able to find it at all. Can anybody give me some guidance? Thanks very much in advance, Jim The process