since ‎09-04-2016
‎10-12-2019
Anton_Smulskiy
Level 2
Insert node after concrete sibling node
Avatar

Anton_Smulskiy

Anton_Smulskiy
- Adobe Experience Manager
Hi,I have a node structure like:parsys- component1- component2- component3- component4And I need to add 'newComponent' node after 'component2' programmatically.The result should be:parsys- component1- component2- newComponent- component3- component4Can't find a way how to add newComponent node to have that order. Can anyone help? Thanks.

Views

1.2K

Likes

0

Replies

1
Re: package manager issue
Avatar

Anton_Smulskiy

Anton_Smulskiy
- Adobe Experience Manager
AEM restart didn't help. But then I reboot my PC, the issue has gone. Have not idea what that was...

Views

773

Likes

0

Replies

0
Re: package manager issue
Avatar

Anton_Smulskiy

Anton_Smulskiy
- Adobe Experience Manager
The package is a valid AEM package

Views

774

Likes

0

Replies

0
package manager issue
Avatar

Anton_Smulskiy

Anton_Smulskiy
- Adobe Experience Manager
Hi,I have a strange issue: cannot install or uninstall any package:Install Package: /etc/packages/my_packages/footer.zipWed Jul 12 2017 12:32:45 GMT+0300 (FLE Daylight Time)Installing contentError during processing:java.lang.NoClassDefFoundError: bom/sun/org/apache/xerces/internal/xni/parser/XMLInputSource...So, somehow it looks for "bom/sun/org/apache/xerces/internal/xni/parser/XMLInputSource"But it should be "com/sun/org/apache/xerces/internal/xni/parser/XMLInputSource" I believe.Does anybody ...

Views

1.2K

Likes

0

Replies

3
Re: Access denied to crxde
Avatar

Anton_Smulskiy

Anton_Smulskiy
- Adobe Experience Manager
Hi Jörg,Yep, you are right, today I faced with issue that crxde doesn't show anything when nosamplecontent runmode used. I googled and found out that CRXde is not a sling app and if I'm not mistaken, WebDav protocol used to get jcr tree in CRXde.

Views

1.0K

Likes

0

Replies

0
Re: Externalizing URLs for a sitemap
Avatar

Anton_Smulskiy

Anton_Smulskiy
- Adobe Experience Manager
Try externalizer.externalLink(..). Make sure you have configuration for Externalizer domain

Views

889

Likes

0

Replies

0
Re: Access denied to crxde
Avatar

Anton_Smulskiy

Anton_Smulskiy
- Adobe Experience Manager
Hi,You can write a sling filter with a pattern property. Check runmode. Get UserId. Then get Authorizable from UserManager. Then you can call memberOf() method on Authorizable.This is first what came to my mind. Maybe there are better ways to reach you goal.

Views

992

Likes

0

Replies

0
Re: Workflow models in code base
Avatar

Anton_Smulskiy

Anton_Smulskiy
- Adobe Experience Manager
I mean after every build. Same AEM version, same server.

Views

1.6K

Likes

0

Replies

1
Workflow models in code base
Avatar

Anton_Smulskiy

Anton_Smulskiy
- Adobe Experience Manager
Hi,We have several workflow models persisted in a code base. And after every deploy there version is increased.I don't think it is good, because the workflow model is not changed, but the new version is created. Is there an option not to increase workflow model version after every deploy?Is it a good idea to keep workflow models in code base?

Views

1.7K

Likes

0

Replies

3
Re: Touch UI Dialog full screen by default.
Avatar

Anton_Smulskiy

Anton_Smulskiy
- Adobe Experience Manager
Thank you. This is what I need.

Views

1.4K

Likes

0

Replies

0
Touch UI Dialog full screen by default.
Avatar

Anton_Smulskiy

Anton_Smulskiy
- Adobe Experience Manager
Hi everybody,By default Touch UI dialog opens like a pop-up. The is a "Toggle fullscreen" button to expand it.Is there a default configuration which makes dialog fullscreen when you open it?

Views

4.4K

Like

1

Replies

4
RTE inside multifield. Classic UI and Touch UI
Avatar

Anton_Smulskiy

Anton_Smulskiy
- Adobe Experience Manager
Hello,I have RTE inside a multifield. The issue I have:Multifield saves values as json. RTE values are become encoded. E.g.linkbecomeslinkAnd when I refresh a page, and open a dialog again, RTE link is like "/my/path" instead of expected /my/path. (quotes appeare from nowhere) Of course such link doesn't work.Should i consider not using RTE inside multifileds of there is a solution?

Views

1.4K

Likes

0

Replies

1
Re: Can we find all those nodes which have multi valued property using SQL2
Avatar

Anton_Smulskiy

Anton_Smulskiy
- Adobe Experience Manager
AFAIK there is no way to find only String[] properties. I suggest to use Sling / JCR API to execute query and find all nodes with your property and then iterate through result and filter multi-valued properties.

Views

3.7K

Likes

0

Replies

1
Re: Can we find all those nodes which have multi valued property using SQL2
Avatar

Anton_Smulskiy

Anton_Smulskiy
- Adobe Experience Manager
Hi,Do you know the name of your property?Is it always multi-value?If yes, just search for nodes with your property nameExample: SELECT * FROM [cq:PageContent] AS s WHERE ISDESCENDANTNODE([/content/geometrixx-outdoors]) and [jcr:mixinTypes] is not null

Views

3.7K

Likes

0

Replies

3
Re: Backing up ACL Permissions
Avatar

Anton_Smulskiy

Anton_Smulskiy
- Adobe Experience Manager
Try this toolhttps://adobe-consulting-services.github.io/acs-aem-commons/features/acl-packager.html

Views

735

Likes

0

Replies

0
Re: Apache sling's request parameter handling
Avatar

Anton_Smulskiy

Anton_Smulskiy
- Adobe Experience Manager
Please go to the link provided by Kautuk,It seems this is what you need.

Views

954

Likes

0

Replies

0
Analog of editorgrid xtype in Touch UI
Avatar

Anton_Smulskiy

Anton_Smulskiy
- Adobe Experience Manager
Hello,There is xtype editorgrid in Classic UI:https://docs.adobe.com/docs/en/cq/5-6-1/developing/widgets/xtypes.html (Search for 'editorgrid ')[img]https://docs.adobe.com/content/docs/en/cq/5-6-1/developing/widgets/xtypes/_jcr_content/par/image_10.img.png/1393618760711.png[/img]Is there something similar in Touch UI?

Views

547

Likes

0

Replies

2
Re: Apache sling's request parameter handling
Avatar

Anton_Smulskiy

Anton_Smulskiy
- Adobe Experience Manager
It seems your "temporary file location" is incorrect

Views

898

Likes

0

Replies

0
Re: AEM i18n from Javascript (try 2)
Avatar

Anton_Smulskiy

Anton_Smulskiy
- Adobe Experience Manager
Try to remove "-" from i18n key name.Try to use CQ.I18nDebug

Views

4.8K

Likes

0

Replies

0
Re: AEM i18n from Javascript (try 2)
Avatar

Anton_Smulskiy

Anton_Smulskiy
- Adobe Experience Manager
Have you checked if your i18n works on JSP/Java? If it works there - I have no answer.If not - make sure use set your dictionary correctly under /apps/your-app/i18n. Also, your page should be under /content/your-app/...

Views

4.8K

Likes

0

Replies

0
Re: Turn off allowUpload in TouchUI
Avatar

Anton_Smulskiy

Anton_Smulskiy
- Adobe Experience Manager
Update:in AEM 6.2 allowUpload="false" works in the same way as it works in Classic UI.Just add this property to the node "file" of sling:resourceType = 'granite/ui/components/foundation/form/fileupload'before:after:

Views

1.7K

Likes

2

Replies

0
Re: Sidekick not visible
Avatar

Anton_Smulskiy

Anton_Smulskiy
- Adobe Experience Manager
Add '/cf#' before /content/... in your URL. If no result, check console for js errors, check error.log.

Views

1.2K

Likes

0

Replies

0
Re: Email is coming to mail without HTML format
Avatar

Anton_Smulskiy

Anton_Smulskiy
- Adobe Experience Manager
Hi,Try to change the extension of your template from .txt to .html

Views

820

Likes

0

Replies

0
Re: #AEM [ATCE Recordings] List of all Ask the AEM Community Experts Sessions. See adobe.ly/1YUR1MZ
Avatar

Anton_Smulskiy

Anton_Smulskiy
- Adobe Experience Manager
What is the difference between AEM Gems and ATCE sessions?

Views

863

Likes

0

Replies

1
Re: SQL2 Help
Avatar

Anton_Smulskiy

Anton_Smulskiy
- Adobe Experience Manager
Append your query with this:AND [jcr:path] like '%/cq:dialog/%'

Views

792

Likes

0

Replies

0
Re: Expression language in jsp, not putting the HTML markup correctly
Avatar

Anton_Smulskiy

Anton_Smulskiy
- Adobe Experience Manager
Just as assumption: try to change " to ' in your property value.

Views

601

Likes

0

Replies

0
AEM ACS Commons with gradle
Avatar

Anton_Smulskiy

Anton_Smulskiy
- Adobe Experience Manager
Hi,I've used ACS Commons with Maven.There is a document how to setup ACS Commons as a sub-package in Maven.My new project uses gradle as a build tool. Is there a way to install ACS Commons package with gradle?

Views

1.1K

Likes

0

Replies

2
Re: SQL2 Update Query
Avatar

Anton_Smulskiy

Anton_Smulskiy
- Adobe Experience Manager
From description - no.One more option is a bulk editorhttps://docs.adobe.com/docs/en/aem/6-1/administer/operations/bulk-editor.htmlMake a queryExport results to excel fileFilter/update properties in excel fileImport excel fileBut, be aware. From documentation: When you re-import content, you erase any previous content for those nodes. Be careful not to overwrite important information.

Views

841

Likes

0

Replies

0
Re: SQL2 Update Query
Avatar

Anton_Smulskiy

Anton_Smulskiy
- Adobe Experience Manager
Check this tool. https://adobe-consulting-services.github.io/acs-aem-tools/csv-resource-type-updater.htmlI think this is what you are looking for.

Views

733

Likes

0

Replies

0
Re: CheckForNull annotation in Adaptable.adaptTo
Avatar

Anton_Smulskiy

Anton_Smulskiy
- Adobe Experience Manager
Hi Alex,Maybe it's a bad practice, but I check for null only if there is a real chance to get null returned.in this case I don't check:Session session = resourceResolver.adaptTo(Session.class);But when I'm not sure if resource can be adapted to my model, I check for null:MyModel myModel = resource.adaptTo(MyModel.class); if (myModel == null) { // do something }

Views

887

Likes

0

Replies

0