Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Core Components | Table Of Contents | Not Available on my local

Avatar

Employee

Hi All,

 

I'm following the instructions in this GitHub link to enable the Table of Contents component in my local WKND project. You can find the TableOfContentsFilter is enabled in below as per the instructions, but for some reason, the ToC component is not appearing in allowed components as expected.

 

OSGi Config:

eobaseki_0-1713876252712.png

 

Allowed Components:

eobaseki_1-1713876604683.png

 

 

Has anyone encountered a similar issue or have any suggestions on troubleshooting this problem? Any insights or guidance would be greatly appreciated!

 

Thank you in advance for your help.

 

Github Link: https://github.com/adobe/aem-core-wcm-components/tree/main/content/src/content/jcr_root/apps/core/wc...

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @eobaseki ,

 

The configuration is not about show/hide of the component in your template policies, it's about rendering the content of the component on your page or not.
Please refer https://experienceleague.adobe.com/en/docs/experience-manager-core-components/using/wcm-components/t...

 

If you want to make use of this component, create a proxy component at the project level, provide the component group and map that component to

sling:resourceSuperType="core/wcm/components/tableofcontents/v1/tableofcontents"

 Then you can see the component available in template policy.

View solution in original post

6 Replies

Avatar

Correct answer by
Community Advisor

Hi @eobaseki ,

 

The configuration is not about show/hide of the component in your template policies, it's about rendering the content of the component on your page or not.
Please refer https://experienceleague.adobe.com/en/docs/experience-manager-core-components/using/wcm-components/t...

 

If you want to make use of this component, create a proxy component at the project level, provide the component group and map that component to

sling:resourceSuperType="core/wcm/components/tableofcontents/v1/tableofcontents"

 Then you can see the component available in template policy.

Avatar

Employee

Thanks a lot @sravs. I can confirm that the Table of Contents is now appearing on my local environment after creating a proxy component in CRXDE. You saved my day; thank you so much

 

Avatar

Community Advisor

Hi, 


Did you verify that all bundles are active? This issue could be related to the version of Core components you're using. I installed version 2.22.10 via the package manager, and the component is enabled by default. I'm testing this in a new AEM 6.5.17 instance. Also, try adding this component to a different page. I'm testing it in the Demo template, which is included as part of the Core components.

EstebanBustamante_0-1713883881290.png

Hope this helps



Esteban Bustamante

Avatar

Employee

Thank you for your comment @EstebanBustamante. It turns out the issue was related to not creating the proxy component. 

Avatar

Community Advisor

@eobaseki Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.