since ‎21-08-2020
‎01-10-2020
Andrei_Dantsou
Level 3
Make Touch UI based components development easier | AEM Authoring Toolkit
Avatar

Andrei_Dantsou

Andrei_Dantsou
- Adobe Experience Manager
With the onset of AEM 6.x, Adobe introduced a new modern-looking authoring framework known as touch-oriented interface or Touch UI. Its underlying Granite framework delivers excellent options for authoring on any type of device. You can arrange complex editing dialogs however you like, enjoy the same experience on any device and/or breakpoint, and implement most of the logic in the inline editing mode. AEM 6.x has got all the power and dashing good looks of the Coral 3.0 interface.But there is a...

Views

159

Likes

2

Replies

1
Re: Remove list of pages using groovy script
Avatar

Andrei_Dantsou

Andrei_Dantsou
- Adobe Experience Manager
Hello @gayatrik8153299 ,If your goal is to remove pages by the paths from the list, you can just iterate through the list with paths, get nodes and remove them (no querying is required): def list =["/content/we-retail/us/en/test1","/content/we-retail/be/en/test1","/content/we-retail/us/en/test2","/content/we-retail/be/en/test2"] list.each { path -> def node = getNode(path); node.remove(); println "removed:"+path } session.save() or using Resource API: def list =["/content/we-retail/us/en/test1",...

Views

121

Like

1

Replies

0
Re: AEM 6.5 standalone installation error
Avatar

Andrei_Dantsou

Andrei_Dantsou
- Adobe Experience Manager
Hello @DIPEN1,Could you please share some more ERROR messages from the logs which were outputted before/after the message you've provided initially? If any of them contained SegmentNotFoundException, it would indicate presence of repository/segment store inconsistency.To fix that the following steps should be taken (please see the link for reference):1. Download a version of oak-run that matches your oak core version from https://mvnrepository.com/artifact/org.apache.jackrabbit/oak-run2. Run the...

Views

120

Like

1

Replies

1
Re: 404 error in a higher environment when accessing serv...
Avatar

Andrei_Dantsou

Andrei_Dantsou
- Adobe Experience Manager
Hello @binoyp,First of all, you should ensure that the servlet is available on Publish of the desired environment. If the servlet is available on Publish, then you should check Dispatcher config containing "filter" section to ensure that the servlet path is allowed there, please see https://docs.adobe.com/content/help/en/experience-manager-dispatcher/using/configuring/dispatcher-configuration.html#defining-a-filter for more details./filter { /xxxx { /type "allow" /url "/servlet/path" } }Regards

Views

117

Like

1

Replies

0
Re: SPA App deployment with classic profile
Avatar

Andrei_Dantsou

Andrei_Dantsou
- Adobe Experience Manager
@mrobinson ,The classic profile can be found in the tutorial code repo:https://github.com/adobe/aem-guides-wknd-spa/blob/React/create-project-start/all/pom.xmlhttps://github.com/adobe/aem-guides-wknd-spa/blob/React/create-project-start/core/pom.xmlRegards

Views

87

Like

1

Replies

1
Re: SPA App deployment with classic profile
Avatar

Andrei_Dantsou

Andrei_Dantsou
- Adobe Experience Manager
Hello @mrobinson,The AEM project archetype (https://github.com/adobe/aem-project-archetype) doesn't include the mentioned profile by default. In order to make your profile available for the build, it should be specified in the "profiles" section of your pom.xml. Please see the documentation for more details about profiles definition.Regards

Views

93

Like

1

Replies

1
Re: AEM Assets (6.5.4) Error Handling for all extensions
Avatar

Andrei_Dantsou

Andrei_Dantsou
- Adobe Experience Manager
Hello @abinav_98 ,You should specify the content type in ResponseStatus404.java as well:public void activate() throws Exception { getResponse().setStatus(404); getResponse().setContentType("text/html");} Regards

Views

95

Likes

2

Replies

1
Re: HTTP ERROR 503 (Problem accessing /crx/de. Reason: Se...
Avatar

Andrei_Dantsou

Andrei_Dantsou
- Adobe Experience Manager
Hello @tushaar_srivastava,The 503 error occurs due to the fact that the service is stopping. You should wait while the instance is completely stopped and to start it again. The steps for stopping/starting an instance using the scripts located under /bin (crx-quickstart/bin folder in your case) are described in the documentationhttps://docs.adobe.com/content/help/en/experience-manager-64/deploying/deploying/command-line-start-and-stop.htmlRegards

Views

157

Likes

2

Replies

0
Re: Common Config folder not activating osgi component
Avatar

Andrei_Dantsou

Andrei_Dantsou
- Adobe Experience Manager
@Adilmo,your understanding is correct - if a config is not present neither in config.author.dev nor in config.author, it should be take from the config folder. If your goal is to apply the configuration from the config folder via deployment of a maven project, then please make sure that the desired config is not present in more specific folders (config.author.dev, config.author) and you might also need to remove the config from /apps/system/config and crx-quickstart/launchpad/config prior to the...

Views

109

Likes

0

Replies

0
Re: Common Config folder not activating osgi component
Avatar

Andrei_Dantsou

Andrei_Dantsou
- Adobe Experience Manager
Hello @Adilmo,The behavior you've described is expected, since if there are several config folders with multiple run modes combined, the most specific one is applied. In your case config.author.dev has a priority over just config or config.author. More details about config resolution order can be found here (please see the "Resolution of multiple Run Modes" section).The documentation suggests using sling:folder for managing OSGI configs. Differences between sling:folder and nt:folder (please see...

Views

126

Like

1

Replies

2
Re: [ERROR] Failed to execute goal com.day.jcr.vault:cont...
Avatar

Andrei_Dantsou

Andrei_Dantsou
- Adobe Experience Manager
Hello @danilo-delfio ,The error indicates that the AEM instance is not accessible for package installation.Please ensure you have an instance of AEM running locally on port 4502 and you have the corresponding port specified in pom.xml:4502 Regards

Views

186

Likes

3

Replies

1
Re: Do not cache custom FAQ component
Avatar

Andrei_Dantsou

Andrei_Dantsou
- Adobe Experience Manager
Hi @dipu2,As per your previous message, the resource on Publish is , whereas on Dispatcher the path is /content/referencesite/us/en/faq/_jcr_content/root/container/container/faq.nocache.html.The path to the included resource should be the same on both Publish and Dispatcher.My guess is that Dispatcher has cached page html containing improper path (e.g. during intermediate configuration). Can you please try to clear Dispatcher cache for /content/referencesite/us/en/faq and re-check the page on Di...

Views

119

Likes

0

Replies

0
Re: Indexes going in Traversal
Avatar

Andrei_Dantsou

Andrei_Dantsou
- Adobe Experience Manager
Hi @Kundan_Ray1,Oak chooses the indexer with the lowest estimated cost. (https://docs.adobe.com/content/help/en/experience-manager-65/deploying/deploying/queries-and-indexing.html).You can go to Tools > Operations > Dashboard > Diagnosis > Query Performance > Explain Query (/libs/granite/operations/content/diagnosistools/queryPerformance.html), execute you query and check costs for ntBaseLucene vs traversal.If the cost for ntBaseLucene is higher, it might indicate that indexes are broken/not act...

Views

122

Like

1

Replies

0
Re: Do not cache custom FAQ component
Avatar

Andrei_Dantsou

Andrei_Dantsou
- Adobe Experience Manager
@dipu2,If the component is still not shown, please make sure that all the steps from the section Enabling SSI in Apache with the AEM Dispatcher Module have been applied on the Dispatcher.In particular, can you please double-check this: Also could you please confirm that mod_include is enabled?LoadModule include_module modules/mod_include.so

Views

171

Likes

0

Replies

0
Re: Do not cache custom FAQ component
Avatar

Andrei_Dantsou

Andrei_Dantsou
- Adobe Experience Manager
@dipu2,As far as I can see on the screenshots, the page on Dispatcher was cached previously ("faq" page title is present on Dispatcher, and it's missing on Publish).Could you please try to clean the Dispatcher cache for this page and re-check?

Views

171

Likes

0

Replies

0
Re: Do not cache custom FAQ component
Avatar

Andrei_Dantsou

Andrei_Dantsou
- Adobe Experience Manager
Hello @dipu2 ,First of all, could you please confirm that on your Publish instance the bundle "Apache Sling Dynamic Include" is installed, the corresponding configuration for "Apache Sling Dynamic Include - Configuration" is set, and you see the similar comment in source code of the page close to your component (due to the "Add comment" checkbox in the config):If the comment is missing, the configuration on Publish should be double-checked prior to digging into Dispatcher configs.Regards

Views

163

Like

1

Replies

1
Re: AEM Asset contents are not translating on 6.4.5
Avatar

Andrei_Dantsou

Andrei_Dantsou
- Adobe Experience Manager
Hello @ranjithp2340955 ,As stated in the documentation https://docs.adobe.com/content/help/en/experience-manager-cloud-service/assets/admin/translate-assets.html,if you use Machine Translation, asset binaries aren't translated. In other words, if you need to translate text files, ms word file, PDF file, etc., the Human Translation method should be used. More details about the Human Translation configuration can be found here https://docs.adobe.com/content/help/en/experience-manager-65/administer...

Views

104

Likes

2

Replies

1
Re: Can redirect a page to a page with alias name?
Avatar

Andrei_Dantsou

Andrei_Dantsou
- Adobe Experience Manager
Hello @gayatrik8153299 ,If your goal is redirection from /page1.html to /page1-alias.html, then you should use the Rewrite Rule directive:RewriteRule /page1.html /page1-alias.html [R=301,L] - for 301 redirect (the path shown in browser will be /page1-alias.html) orRewriteRule /page1.html /page1-alias.html [PT] (the path shown in browser will be /page1.html) https://httpd.apache.org/docs/2.4/mod/mod_rewrite.html#rewriterulehttps://httpd.apache.org/docs/2.4/rewrite/flags.htmlThe alias in the "Page...

Views

152

Like

1

Replies

1
Re: How to set environmental variables and call it from a...
Avatar

Andrei_Dantsou

Andrei_Dantsou
- Adobe Experience Manager
Please see the thread https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager-forms/getting-current-aem-run-mode-in-adaptive-form/qaq-p/320292

Views

159

Likes

0

Replies

0
Re: How to set environmental variables and call it from a...
Avatar

Andrei_Dantsou

Andrei_Dantsou
- Adobe Experience Manager
If the Run Modes where set up accordingly at your environments, e.g. development, production, etc. (https://docs.adobe.com/content/help/en/experience-manager-64/deploying/configuring/configure-runmodes.html), you can get the current Run Mode at backend and it will contain the corresponding value, such as development or production. The example of getting the Run Modes in Java code https://sling.apache.org/documentation/bundles/sling-settings-org-apache-sling-settings.htmlThe example of getting Ru...

Views

185

Likes

0

Replies

0
Re: How to set environmental variables and call it from a...
Avatar

Andrei_Dantsou

Andrei_Dantsou
- Adobe Experience Manager
Hello @mohamedn4455443 ,If your goal is to use the values in your code you can use environment specific OSGI configurations https://docs.adobe.com/content/help/en/experience-manager-cloud-service/implementing/deploying/overview.html#runmodesIf you need to set up the url for referencing your site at different environments, it should be done at Dispatcher level https://docs.adobe.com/content/help/en/experience-manager-dispatcher/using/configuring/dispatcher-domains.html#create-dispatcher-farms-for...

Views

205

Likes

2

Replies

4
Re: I want to reomve all the invalid external links and i...
Avatar

Andrei_Dantsou

Andrei_Dantsou
- Adobe Experience Manager
Hello @kranthivulpe ,Indeed, the OOTB link checker is not suitable for outputting broken links with referenced pages for the entire site.You can implement the custom script using Groovy Console or AEM Fiddle to go through the /content, get links from properties and check if resource exists via resourceResolver (for internal links) or to validate an external link via calling it from Groovy/Fiddle script (e.g for groovy ​println 'http://www.google.com'.toURL()​.text​).Similar script implementation...

Views

92

Likes

2

Replies

0
Re: Parsys customization issue
Avatar

Andrei_Dantsou

Andrei_Dantsou
- Adobe Experience Manager
Hello @arvind ,In the example you've mentioned, the components inserted to the custom parsys are not shown due to this condition in sightly - "paragraph.cssClasses".After removing it from the line 31 of parsys.html, the components are shown:``````Regards

Views

124

Like

1

Replies

1
Re: AEM 6.4 SP7 - RTE Inline Editor Listener- Touch UI
Avatar

Andrei_Dantsou

Andrei_Dantsou
- Adobe Experience Manager
Hello @dhanubrp Touch UI events handling is described here https://helpx.adobe.com/experience-manager/using/creating-touchui-events.htmlThe "inline-edit-finish" event is what you are looking for:$document.on("inline-edit-finish", function (event) { alert("inside inline-edit-finish");});Example of usage of the mentioned event can be found here http://experience-aem.blogspot.com/2016/07/aem-62-rich-text-editor-inplace-editing-perform-spellcheck-before-save.htmlRegards

Views

125

Likes

2

Replies

1
Re: Update Translation without updating content
Avatar

Andrei_Dantsou

Andrei_Dantsou
- Adobe Experience Manager
Hello @troubleshooter3 You can create a new Translation project (Projects > Create > Translation Project) and while adding the desired page to the job it is possible to update the language copy:Regards

Views

155

Like

1

Replies

1
Re: Pass value from JS to sly attribute
Avatar

Andrei_Dantsou

Andrei_Dantsou
- Adobe Experience Manager
Hi @viki1101,Basically, the code written using JavaScript Use-Api is converted to Java (please see https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Rhino for reference) and thus it is executed at a server side as well as Sightly (please see accepted solution here https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/sightly-javascript-use-implemetaion-question/qaq-p/224442). If CDN and/or Dispatcher are used for caching content (the most likely), the server side appr...

Views

134

Likes

2

Replies

1