Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adding default filter to sidekick

Avatar

Level 2

I have a requirement where I want to display components only relevant to the template being used to create a page.

This would mean that there will not be any dropdown that allows the user to toggle between component groups.

Could you help me in understanding how this could be implemented?

3 Replies

Avatar

Level 10

What AEM version are you using? I assume you are still using static templates and classic UI. This requirement in more recent versions of AEM would simply be defining which components are allowed to be used in a layout container in an editable template. This would be achieved in a policy. However for older AEM versions, its not as straightforward.

Avatar

Level 2

Recently moved to AEM 6.3, still on static templates but using touch ui.

Avatar

Level 10

As you are on AEM 6.3 - I recommend that you go through all sections here.

Getting Started with AEM Sites - WKND Tutorial

Learn about editable templates and polices for layout containers. This now reflects best practice for AEM 6.3/6.4. Using Polcies, you can control which components an authro can use in a given layout container. It such a better solution then trying to hack the side kick by changing JS code.

Using Classic UI and side kick is not best practice no longer. Take advantage of editable templates, polcies and all that is shown in the Weekend 6 part tutorial.