Search code examples
aem

AEM 6.2 create common content to reuse on multiple pages


I am new to AEM and know that AEM is based on pages. I am wondering if there is any functionality available using which an Author can create a common content snippet once and reuse on multiple pages. Please suggest.


Solution

  • This depends on the scope of reuse, you have option of:

    • Content fragments (as mentioned above) which is available from 6.2+
    • Sling content reference which has always been there.
    • iParsys, normally used for common content like header, footer, log etc.
    • Authorable templates can be a crude implementation for content sharing depending on requirement. For example, log can be part of template.

    Experience Fragments are much better due to cache management in 6.3.

    It all depends on use case but there are several answers and approaches so you will need to pick the best fit for your project.