내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

Show content and DAM path in core button component link field

Avatar

Level 4

Hello All,

 

Core button component Link field is of type: granite/ui/components/coral/foundation/include 
When we author button path it only shows content pages like below:

supriyahande_0-1694163762465.png

 

We have a requirement to show both content and DAM path here. I tried adding jcr property nodeTypes="dam:Asset, nt:file, cq:Page" to link field but its not working. I saw Richtext component pathfield shows both content and DAM path as below: 

supriyahande_1-1694164016271.png

We want something like this. Is this possible in Core Button v2 component?

 

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Community Advisor

Hi @supriya-hande 
The type itself says pagefield, so you can't fetch the assets.

https://github.com/adobe/aem-core-wcm-components/blob/e8fc23acf252384ded026c59a142ddd905ab306a/conte... 

sling:resourceType="cq/gui/components/coral/common/form/pagefield" 

 

you can extend button and link component and change the type to formal pathfield and use new link type

Arun Patidar

AEM LinksLinkedIn

원본 게시물의 솔루션 보기

2 답변 개

Avatar

정확한 답변 작성자:
Community Advisor

Hi @supriya-hande 
The type itself says pagefield, so you can't fetch the assets.

https://github.com/adobe/aem-core-wcm-components/blob/e8fc23acf252384ded026c59a142ddd905ab306a/conte... 

sling:resourceType="cq/gui/components/coral/common/form/pagefield" 

 

you can extend button and link component and change the type to formal pathfield and use new link type

Arun Patidar

AEM LinksLinkedIn

Avatar

Community Advisor

This is currently an open issue.(#1333 and #2265)

 

'nodeType' property will work in Pathfield. So possible solution would be to use Pathfield(granite/ui/components/coral/foundation/form/pathfield) instead of Pagefield.