Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

How we can enable documents within the List Component ?

Avatar

Level 2

In list component how we can author pdf documents! Is it possible?

1 Accepted Solution

Avatar

Correct answer by
Level 8

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-overla...

Thanks

 

View solution in original post

6 Replies

Avatar

Level 2

@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?

Avatar

Level 8

Hi @ramsaipavan ,

we will not be able to link pdf/docs as page field in list is of type cq/gui/components/coral/common/form/pagefield which is supposed to accept page only.

You can overlay to use or simply create new as it is multifield with few variation of sorting.

Thanks

Avatar

Level 2

@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?

Avatar

Correct answer by
Level 8

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-overla...

Thanks

 

Avatar

Community Advisor

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