since ‎12-09-2020
‎01-10-2020
abhilakhpatre1
Level 2
Re: search inside a page content and the content of the c...
Avatar

abhilakhpatre1

abhilakhpatre1
- Adobe Experience Manager
I had similar requirement of searching the content inside content fragment inside page. I'm not sure below will help you but I'm trying to just help : There will be different scenarios or requirements. One of it is:Scenario 1 : You want the pages in which there is content fragment having search keyword 'hello_world' You can go through below points and try to implement in this way:1) Content fragments are of type dam:Asset 2) Refine your query to search in Dam for the type dam:Asset and provide y...

Views

154

Like

1

Replies

1
Re: SQl2 query with contains does not find any nodes
Avatar

abhilakhpatre1

abhilakhpatre1
- Adobe Experience Manager
Your first query looks fine and gives a expected results. If you want to search with like clause you can also introduce wildcard characters based upon your requirements to match the words (trailing or starting) When it comes to CONTAINS , it will also work for non-delimetered words (simplewords) for it to be worked for delimited words like in your case _ underscore, you have to add double quotes to the text you are searching. I have rephrased your query with double quotes like below : SELECT * F...

Views

160

Like

1

Replies

1
Re: Converting jsp to HTL
Avatar

abhilakhpatre1

abhilakhpatre1
- Adobe Experience Manager
You can use granite data sources for generating the dynamic list / checkbox options. See here :https://redquark.org/aem/day-17-granite-datasources/ OR you can create a Java WCM Use POJO and manipulate your fields in the same. You can use Node API to create node and add properties dynamically. See here :https://stackoverflow.com/questions/38888773/programmatically-add-node-in-aem

Views

150

Likes

0

Replies

0
Re: Converting jsp to HTL
Avatar

abhilakhpatre1

abhilakhpatre1
- Adobe Experience Manager
Looking at the code snippet, I thought it's static one.

Views

154

Likes

0

Replies

0
Re: disable live copy for specific pages
Avatar

abhilakhpatre1

abhilakhpatre1
- Adobe Experience Manager
There is concept called suspending inheritance that provides you option to stop inheriting the live copy for specific pages and breaks its relation. You also have option to Resume it after you suspend inheritance.For more details and action please refer : https://docs.adobe.com/content/help/en/experience-manager-65/administering/introduction/msm-livecopy.html#suspending-inheritance-for-a-page

Views

103

Likes

2

Replies

0
Re: Converting jsp to HTL
Avatar

abhilakhpatre1

abhilakhpatre1
- Adobe Experience Manager
You can simply create a node in crx/de of required resource type (here : "granite/ui/components/coral/foundation/form/checkbox") . You can add the properties to node, like here you're putting it in ValueMap and you can include that resource using data-sly-resource HTL syntax like below : For more ways to include resources using HTL please refer : https://docs.adobe.com/content/help/en/experience-manager-htl/using/htl/block-statements.html#resource

Views

171

Like

1

Replies

3
Re: Forbidden - 403
Avatar

abhilakhpatre1

abhilakhpatre1
- Adobe Experience Manager
Hi @Heena06 , There should not be a trailing slash while calling the Resource. When Sling tries to resolve the same path, it won't be able to find the script to load. Please use any extensions .html, .json or .model.json etc. It will render the script based on extension or selectors match.

Views

108

Likes

2

Replies

0
Likes given to
Likes from