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

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

Should Experience Fragment template sling:resourceType point to "page" or "xfpage" ?

Avatar

Level 2

Hi,
While working on templates for Experience fragment I noticed something -

  • In the WKND site, the sample Experience fragment template's sling:resourceType for initial node points to wknd/components/xfpage, whereas the sling:resourceType for structure node points to wknd/components/page
  • In contrast, in the archetype package the sling:resourceType for both initial and structure node point to ${appId}/components/xfpage.

Could you please provide some insights into why this difference exists and which approach is recommended.

주제

토픽은 커뮤니티 콘텐츠를 분류하여 관련성 있는 콘텐츠를 찾는 데 도움이 됩니다.

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Community Advisor

@ArchitAr2 

 

Please use ${appId}/components/xfpage.

WKND might not be as updated as an archtype


Aanchal Sikka

원본 게시물의 솔루션 보기

3 답변 개

Avatar

정확한 답변 작성자:
Community Advisor

@ArchitAr2 

 

Please use ${appId}/components/xfpage.

WKND might not be as updated as an archtype


Aanchal Sikka

Avatar

Level 5

the resourcetype for the XF template should point to xfpage component -example wknd/components/xfpage.

 

the difference might be due to some incorrect/outdated code in the wknd project. please follow the archetype pattern only that is keeping both nodes resourcetype as <project>/components/xfpage

Avatar

Community Advisor

@ArchitAr2 ,

 

Yes, as other community members stated, it should point to ${project}/components/xfpage. By pointing it to component/page, it may create problems while trying to create variations of a given XF.