Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Useful JCR Locations for AEM Templates and components

Common components

  1. Core Components
  2. JSP foundation components
    • foundation/components
  3. HTL Foundation components
    • wcm/foundation/components

AEM Projects

  1. Base AEM Project templates
    • /libs/cq/core/content/projects/templates
    • Must be under: /apps/*/projects/templates/<YourTemplate>

Editable Templates

  1. HTML5 Template-Type
    • /libs/settings/wcm/template-types/html5page
  2. Adaptive Form Template-Type
    • /libs/settings/wcm/template-types/afpage
  3. Core Components Template-Type -/apps/settings/wcm/template-types

Translation

  1. Language List
    • /libs/wcm/core/resources/languages

Experience Fragments

  1. Add Custom Experience Fragment Template
    • Create an editable template from any template-type
    • /conf/<configFolder>/settings/wcm/templates/<YourTemplate>/initial/jcr:content
      • sling:resourceType= /libs/cq/experience-fragments/components/xfpage
      • cq:xfVariantType= web|pintrest|facebook
      • cq:tags= [experience-fragments:variation/web]
    • Add this template to: /content/experience-fragments/cq:allowedTemplates
  2. Base Web Template, Facebook Template, Pintrest Template
    • /libs/settings/experience-fragments/templates
  3. Experience Fragment Component
    • /libs/cq/experience-fragments/components/xfpage

Content Fragments

  1. Content Fragment Component
    • /libs/dam/cfm/components/contentfragment

Custom Global Configurations

  1. Metadata Schemas
    • Tools > Assets > Metadata Schemas
    • Saved: /conf/global/settings/dam/adminui-extension/metadataschema/<schemaCustomized>
  2. Metadata Profiles
    • Tools > Assets > Metadata Profiles
    • Saved: /conf/global/settings/dam/adminui-extension/metadataprofile
  3. Search Facets
    • Tools > General > Search Forms
    • Saved: /conf/global/settings/dam/search/facets/<searchCustomized>

Forms for Form Builders

  1. Metadata Schema Form Fields

    • /libs/dam/gui/coral/components/admin/schemaforms/formbuilder/formfields
  2. Granite UI Form Fields

    • /libs/granite/ui/components/coral/foundation/form

AEM + AC7/ACS

  1. AC7/AC6 Base Newsletter Page Template
    • /libs/mcm/campaign/templates/ac-email-61
  2. ACS Base Newsletter Page Template
    • /libs/mcm/campaign/templates/ac-email-acs
  3. Custom templates should be under
    • /apps/.*/templates/newsletter.*
  4. Base Newsletter components
    • /libs/mcm/campaign/components
  5. OOTB Newsletter Page Component
    • /libs/mcm/campaign/components/campaign_newsletterpage
  6. Default Design location
    • /etc/designs/default/jcr:content/campaign_newsletterpage

AEM UI

  1. AEM Navigation
    • /libs/cq/core/content/nav
    • Can be used to add/remove navigation links
  2. AEM Site Wizards
    • /libs/wcm/core/content/sites/
  3. Sites Action Buttons
    • /libs/wcm/core/content/sites/jcr:content/actions
  4. List View in Sites Console
    • /libs/wcm/core/content/common/availablecolumns
  5. AEC Solution Switcher (9 dot square)
    • /libs/granite/ui/content/shell/solutionswitcher/
  6. Help Menu
    • /libs/granite/ui/content/shell/help/
  7. About Message
    • /libs/granite/ui/components/shell/help/about/
  8. Asset Card
    • /libs/dam/gui/coral/components/admin/contentrenderer/card/asset/

/conf/* Resolution Order

org.apache.sling.caconfig.resource.impl.def.DefaultConfigurationResourceResolvingStrategy

Configuration look up now starts at the top and works down to libs to support muti tenant configurations.

  1. /conf/tenant/sub-tenant
  2. /conf/tenant
  3. /conf/global
  4. /apps/
  5. /libs/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.