버전용 도움말 콘텐츠:

The intention of extending a default component is to alter the appearance or behavior of a component for specific uses.  

 The path to the component is unique and references the default component as a super resource type.  There is less risk as the scope is limited compared to the global scope of a component overlay. 

참고:

Extending an overlaid component is not supported.

Example

Suppose the header for the comment component must display with an alternate appearance on one site of the AEM instance, while appearing with the default display on another site. Instead of overlaying the default comment, which changes the comment component for all instances, a better solution is to ensure there are multiple comment components available for use on various sites.

To implement this solution, create a new component that extends (overrides) the existing one and modify the Handlebars script. The area of the site that uses the new comments can use the extended one, while the sites that use the default appearance remain unaffected.

The comment component is actually one of two components which comprise the comment system.  Thus, there are two components to extend : comments and comment.  The script to edit is in the comment component's header.hbs file, while the parent comments component (the comment system) is what an author actually adds to the page.

To extend comments you will need to:

  1. Create the Components
  2. Add Comment to Sample Page
  3. Alter the Appearance

이 작업에는 Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License의 라이센스가 부여되었습니다.  Twitter™ 및 Facebook 게시물은 Creative Commons 약관을 적용받지 않습니다.

법적 고지 사항   |   온라인 개인 정보 보호 정책