How we can enable documents within the List Component ? | Community
Skip to main content
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 MukeshYadav_

@mukeshyadav_ 

Can I do like this 

/apps/cq/gui/components/coral/common/form/pathfield or browserfield
Instated off coming from cq  i was adding apps as new path will it work fine?


yes,

But instead of doing changes in core either you should overlay(by copy pasting) or extend(override  by specifying sling:superResourceType) the list component in your project.

Change the pagefield to pathfield in overridden component not in /libs one or core component

Ref https://aemvardhan.wordpress.com/2017/02/22/understand-aem-sling-resource-merger-override-and-overlay-concepts/

Thanks

 

1 reply

arunpatidar
Community Advisor
Community Advisor
September 3, 2024
Level 2
September 3, 2024

@arunpatidar 

 

I am not able to see dam path in the fixed list option It was targeting only pages how we can achieve it for dam path for pdf documents?

arunpatidar
Community Advisor
Community Advisor
September 3, 2024

yes,

But instead of doing changes in core either you should overlay(by copy pasting) or extend(override  by specifying sling:superResourceType) the list component in your project.

Change the pagefield to pathfield in overridden component not in /libs one or core component

Ref https://aemvardhan.wordpress.com/2017/02/22/understand-aem-sling-resource-merger-override-and-overlay-concepts/

Thanks

 


Hi @ramsaipavan 

You can override the core component as suggest by @mukeshyadav_ 
Or you can use absolute PDF urls.

 

However I have created a request : https://github.com/adobe/aem-core-wcm-components/issues/2846 

Arun Patidar