since ‎21-10-2013
‎10-12-2019
Oliver-2012
Level 1
Re: local repository access with sling resource resolver
Avatar

Oliver-2012

Oliver-2012
- Adobe Experience Manager Forms
thanks for the reply.I want to run the code outside of the Repository instance (outside of AEM). I don't want to run any tests remotely, i.e. like in a JSP that still resides on the AEM itself.My goal is just to open a connection to the repository like I can do with JcrUtils.getRepository(). This way I still can connect and operate to any JCR nodes directly. But I like to use the Sling Features (i.e. adaptTo).

Views

759

Likes

0

Replies

0
local repository access with sling resource resolver
Avatar

Oliver-2012

Oliver-2012
- Adobe Experience Manager Forms
I like to create test classes which can be started on local system connecting to an AEM repository. To be able to use same code as running inside repository, I need to have a proper ResourceResolver initialized. Of course, inside a running AEM instance, I just get it from the SlingHttpServletRequest. How can I get a ResourceResolver from local test class? Sample code:ResourceResolver resResolver = ????PageManager pageMgr = resResolver.adaptTo(PageManager.class);....

Views

1.4K

Likes

0

Replies

3
local repository access with sling resource resolver
Avatar

Oliver-2012

Oliver-2012
- Adobe Experience Manager
I like to create test classes which can be started on local system connecting to an AEM repository. To be able to use same code as running inside repository, I need to have a proper ResourceResolver initialized. Of course, inside a running AEM instance, I just get it from the SlingHttpServletRequest. How can I get a ResourceResolver from local test class? Sample code:ResourceResolver resResolver = ????PageManager pageMgr = resResolver.adaptTo(PageManager.class);....

Views

251

Likes

0

Replies

1
Re: Remote Repository Session
Avatar

Oliver-2012

Oliver-2012
- Adobe Experience Manager
I tried already a local connection, this works, of course.My problem is to connect from within a repository to another one...

Views

300

Likes

0

Replies

0
Remote Repository Session
Avatar

Oliver-2012

Oliver-2012
- Adobe Experience Manager
I want to create a remote session to another repository from within a repository, means I have a servlet running inside a CQ5 author instance. I tried to open a connection to a remote repository with JcrUtils:Repository repository = JcrUtils.getRepository( "http://myhost:4502/crx/server" );This causes an error message:javax.jcr.RepositoryException: Unable to access a repository with the following settings:org.apache.jackrabbit.repository.uri: http://localhost:4502/crx/serverThe following Reposit...

Views

638

Likes

0

Replies

3
Re: Customize Page Properties / AEM 6.1 TouchUI
Avatar

Oliver-2012

Oliver-2012
- Adobe Experience Manager
I already checked hideOnEdit as well, no change.

Views

756

Likes

0

Replies

0
Re: Customize Page Properties / AEM 6.1 TouchUI
Avatar

Oliver-2012

Oliver-2012
- Adobe Experience Manager
please see answer below, I just copied the whole example into cq:dialog

Views

759

Likes

0

Replies

0
Re: Customize Page Properties / AEM 6.1 TouchUI
Avatar

Oliver-2012

Oliver-2012
- Adobe Experience Manager
Hi, I just took the complete cq:dialog as defined here: https://github.com/Adobe-Marketing-Cloud/aem-authoring-extension-page-dialog/blob/master/src/main/content/jcr_root/apps/demos/components/page/_cq_dialog/.content.xml If I go to view properties and then edit properties, Advanced dialog is still displayed, "more titles and description as well".Which exact version did you check with? Did you use any additional hotfixes for 6.1?I use: cq-6.1.0-hotfix-6445-1.0, cq-6.1.0-hotfix-6446-1.0, cq-6.1.0...

Views

762

Likes

0

Replies

0
Customize Page Properties / AEM 6.1 TouchUI
Avatar

Oliver-2012

Oliver-2012
- Adobe Experience Manager
there is an Article how to customize the view/edit dialogs of AEM 6.1, i.e. hide basic and advanced tab and replace them by custom tabs for certain pages.https://docs.adobe.com/docs/en/aem/6-1/develop/extending/customizing-page-properties/page-properties-views.htmlThe described example does not work. Advanced tab is not hidden, Basic tab still contains "more titles" section.Does anyone know this issue and how to solve?

Views

4.6K

Like

1

Replies

9
Re: Touch UI - Projects - Missing Add Button/Link
Avatar

Oliver-2012

Oliver-2012
- Adobe Experience Manager
I am still using 5.6.1, so I am wondering why the "+" button is not available?Are there any permissions to be set?

Views

308

Likes

0

Replies

0
Touch UI - Projects - Missing Add Button/Link
Avatar

Oliver-2012

Oliver-2012
- Adobe Experience Manager
I do not see the add button even as administrator. Where are the permissions configured?

Views

431

Likes

0

Replies

4
xpath query containing curly braces not working
Avatar

Oliver-2012

Oliver-2012
- Adobe Experience Manager
I need to execute a xpath query containing curly braces. /jcr:root/content/myWebsite//*[jcr:contains(., '{{mySearchString)] order by @jcr:scoreIs there any way to escape curly braces in AEM xpath query?

Views

1.2K

Likes

0

Replies

2
Re: Using image multifield as cq:include tab
Avatar

Oliver-2012

Oliver-2012
- Adobe Experience Manager
I do have exactly the same issue with version 5.6.1. Sample JS is not changed, dialog exactly as in example. The only message I see is when closing the dialog ("OK"):Uncaught TypeError: undefined is not a functionwidgets.js:97624CQ.undo.UndoHistory.CQ.Ext.extend.onSuccessfulFormSubmitwidgets.js:107977CQ.form.SlingSubmitAction.CQ.Ext.extend.successwidgets.js:10916CQ.Ext.extend.handleResponsewidgets.js:3226handleTransactionResponsewidgets.js:3274checkResponsewidgets.js:2234 (anonymous function)

Views

194

Likes

0

Replies

0
Likes from