Pathfield search not working properly on AEM 6.3 | Community
Skip to main content
Level 2
Nov 2, 2017 4:54 PM UTC

Pathfield search not working properly on AEM 6.3

Hi community,

I'm currently working on a site implementation with AEM 6.3. We have a dialog that is using granite/ui/components/coral/foundation/form/pathfield, this is how the code looks like:

<multifieldcollection

sling:resourceType="granite/ui/components/coral/foundation/form/multifield"

fieldDescription="Click + to add a new page/asset"

fieldLabel="Add new Page/Asset for static entries"

jcr:primaryType="nt:unstructured"

composite="{Boolean}true">

<field

sling:resourceType="granite/ui/components/coral/foundation/container"

jcr:primaryType="nt:unstructured"

name="./staticPathsConfig">

<items jcr:primaryType="nt:unstructured">

<linkurl

sling:resourceType="granite/ui/components/coral/foundation/form/pathfield"

fieldLabel="Page/Asset Path"

jcr:primaryType="nt:unstructured"

                                             filter="nosystem,hierarchyNotFile"

rootPath="/content"

name="./path" />

</items>

</field>

</multifieldcollection>

When the user tries to use the search for the pathfield, seems like on the results is showing jcr and metadata nodes which is not correct for an author user. We are expecting to see only pages and assets as a results of the search:

Are we missing something here or this is how the widget is supposed to work? If that the case how can we configured it to only display assets and pages?

Thanks,

David.

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

23 replies

aalfarocr
Level 2
Aug 30, 2019 6:34 AM UTC

Any updates on this ISSUE ??? , it looks like a product BUG ! Very annoying by the way ...

Translate
arunpatidar
New Participant
Aug 30, 2019 7:29 AM UTC

This behavior is no longer exists in 6.4,

you can contact Adobe for hot fix.

Translate
Arun Patidar
aalfarocr
Level 2
Aug 30, 2019 4:43 PM UTC

Hi arunpatidar26​ , no is not, we're using AEM 6.4 and this is still an issue , same issue is reported here -> https://forums.adobe.com/thread/2578650 

Translate
manoj_devapath
Level 5
Nov 2, 2017 9:20 PM UTC

regular select:

search select:

Translate
Level 2
Nov 2, 2017 9:28 PM UTC

Exactly, that's what I mean. I think search is now working correct on the Pathfield, you should be able to find only pages or assets as an author user (not child nodes as jcr or metadata nodes).

Translate
manoj_devapath
Level 5
Nov 2, 2017 5:13 PM UTC

Can you pls remove filter and try. something like this 

<linkurl

   jcr:primaryType="nt:unstructured"

   sling:resourceType="granite/ui/components/coral/foundation/form/pathfield"

   fieldLabel="Link Url"

   name="./path"

   rootPath="/content"

   suffix=".html"/>

remove suffix if not needed.

reference:

PathField — Granite UI 1.0 documentation

https://techrevel.blog/tag/multifield/

Translate
Level 2
Nov 2, 2017 6:40 PM UTC

I tried that before, but it was producing the same behaviour. Filter does not make any difference on how the search is working for pathfield. You can check the code if you want.

Translate
smacdonald2008
Level 10
Nov 2, 2017 8:38 PM UTC

Try to use the Grainte Pathfield.

Translate