Expand my Community achievements bar.

SOLVED

Add page path with ID in an AEM List Component using Fixed List

Avatar

Level 1

Hi Everyone,

I'm trying to add the page path with ID in a list component using fixed list but after saving the change, the link is getting removed from the list.

 

Example :- if I authored 
/content/site/country/language/pagename#dummy
it is getting removed

 

I know that the core component’s list model class is filtering out all such paths but is there any way to fixed this issue?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@Rajesh_KumarBa @Yes, it will require to overlay the List componen. Copy OOTB model in you core folder and update required code for not to have resolver.map() which will allow us to have /id in url.

View solution in original post

4 Replies

Avatar

Community Advisor

@Rajesh_KumarBa It check for the valid link with map and than save to crx/de. Please create custom sling model for your use case referring OOTB sling model

https://github.com/adobe/aem-core-wcm-components/blob/main/bundles/core/src/main/java/com/adobe/cq/w...

OR

you can add ID as /content/site/country/language/pagename/#dummy or /content/site/country/language/pagename?id=dummy

Avatar

Level 1

@Imran__Khan 

the authoring trick didn't work,

but is there any way I can override the isExternalLink method of LinkManagerImpl class
https://github.com/adobe/aem-core-wcm-components/blob/release/2.22.10/bundles/core/src/main/java/com...

 

if I can categorize "/content/site/country/language/pcagename#dummy" as an external URL it will work fine

Avatar

Correct answer by
Community Advisor

@Rajesh_KumarBa @Yes, it will require to overlay the List componen. Copy OOTB model in you core folder and update required code for not to have resolver.map() which will allow us to have /id in url.

Avatar

Administrator

@Rajesh_KumarBa Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni