Why CRXDE Lite search don't return any results from js and css files | Community
Skip to main content
Community Advisor
October 16, 2015
Solved

Why CRXDE Lite search don't return any results from js and css files

  • October 16, 2015
  • 4 replies
  • 2061 views

In CRXDE Lit Home page if I search anything from jsp file text I get results back, however if I try to search any text from js and css files it doesn't return any results.

Here are my findings, I have picked out of box /libs/foundation/components/carousel/ component I opened jsp, js and css files from these components.

I searched for the term "defines the controls" which is line 91 in carousel.jsp, I see this returns results for carousel.jsp

When I tried "Used to output caught errors" which is line 14 in carousel.js, search doesn't return any results

I tried same for css, term "cq-carousel-banner-item" from line 15 in carousel.css, search returns results for jsp file but nothing for css file.

Above is just an example, but this is consistent across all components.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

Your observations are correct - this is not working on AEM 5.6.

[img]AEM33.png[/img]

As you can see - the exact same query that works on AEM 6 is not working on 5.6. 

Please open a ticket here:

https://helpx.adobe.com/marketing-cloud/contact-support.html

4 replies

smacdonald2008
Level 10
October 16, 2015

HI Mohammed

You can use xpath to search content - it returns the nodes in which the text is located - see here:

[img]xpath.png[/img]

To do this:

1. From CRX DE lite - click Tools, Query:

[img]xpath2.png[/img]

2. IN the Path field - specify the path that you want to search - ie - /libs/foundation/components/carousel/carousel.jsp.

3. In the Text field - specify Text - ie  - defines the controls.

4 - Click Generate. This will generate the XPAth command. 

5 - Click Execute. 

MshajiCommunity AdvisorAuthor
Community Advisor
October 16, 2015

Even Query tools don't return any text from js file.

I tried "Used to output caught errors" from line 14 of /libs/foundation/components/carousel/clientlibs/carousel.js

[img]js.jpg[/img]

No results for js files

I tried same for jsp file line 91 of /libs/foundation/components/carousel/carousel.jsp, it returns results

[img]jsp.jpg[/img]

No matter you use query tools or crxde lite search, js and css results are not returned.

I am using CQ 5.6.0

smacdonald2008
Level 10
October 16, 2015

Can you try selecting the actual node and see if that works. Something like:

[img]AEM6.png[/img]

I am seeing a return value for JS. This worked too for the path value:

/libs/foundation/components/carousel

It brought up:

/libs/foundation/components/carousel/clientlibs/carousel.js

But this is AEM 6. I will try with 5.6. 

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

Your observations are correct - this is not working on AEM 5.6.

[img]AEM33.png[/img]

As you can see - the exact same query that works on AEM 6 is not working on 5.6. 

Please open a ticket here:

https://helpx.adobe.com/marketing-cloud/contact-support.html